Thread overview | |||||
---|---|---|---|---|---|
|
January 27, 2006 dmd crasher: member static array sized using enum | ||||
---|---|---|---|---|
| ||||
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 Re: dmd crasher: member static array sized using enum | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim Keating | Er, I probably should have mentioned this is using .144 on Windows :) Tim Keating |
January 28, 2006 Re: dmd crasher: member static array sized using enum | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim Keating Attachments: | 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 |
Copyright © 1999-2021 by the D Language Foundation