Tried release build got ICE, does anyone have a clue what might cause this?
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 19 15:16:38 PDT 2015
On Sunday 20 September 2015 00:09, Random D user wrote:
> class Gui
> {
> enum MouseButton { Left = 0, Right };
>
> private:
>
> struct ClickPair
> {
> MouseButton button = MouseButton.Left;
> };
>
> struct ClickPair // Second struct ClickPair with the enum
> above --> Assertion failure: 'type->ty != Tstruct ||
> ((TypeStruct*)type)->sym == this' on line 957 in file 'struct.c'
> {
> MouseButton button = MouseButton.Left;
> };
> };
Off topic: You don't need semicolons after struct/class declarations in D.
More information about the Digitalmars-d-learn
mailing list