Thread overview
dmd crasher: member static array sized using enum
Jan 27, 2006
Tim Keating
Jan 27, 2006
Tim Keating
Jan 28, 2006
Thomas Kuehne
January 27, 2006
Declaring a statically-sized array member using enum.max before the enum is declared lexically causes dmd to crash.

Here is a minimal test case:

class Test
{
int[Foo.max] intArray;
}

int main(char[][] args)
{
return 1;
}

enum Foo
{
Bar = 0,
Baz,
FooBar,
FooBaz,
BarBaz
}


Tim Keating
January 27, 2006
Er, I probably should have mentioned this is using .144 on Windows :)

Tim Keating
January 28, 2006
Tim Keating schrieb am 2006-01-27:
> Declaring a statically-sized array member using enum.max before the enum is declared lexically causes dmd to crash.
>
> Here is a minimal test case:
>
> class Test
> {
> int[Foo.max] intArray;
> }
>
> int main(char[][] args)
> {
> return 1;
> }
>
> enum Foo
> {
> Bar = 0,
> Baz,
> FooBar,
> FooBaz,
> BarBaz
> }

Added to DStress as http://dstress.kuehne.cn/run/e/enum_43_A.d http://dstress.kuehne.cn/run/e/enum_43_B.d http://dstress.kuehne.cn/run/e/enum_43_C.d http://dstress.kuehne.cn/run/e/enum_43_D.d http://dstress.kuehne.cn/run/e/enum_43_E.d http://dstress.kuehne.cn/run/e/enum_43_F.d http://dstress.kuehne.cn/run/e/enum_43_G.d http://dstress.kuehne.cn/run/e/enum_43_I.d http://dstress.kuehne.cn/run/e/enum_43_J.d

Thomas