[Issue 355] New: ICE from enum : nonexistent type

Thomas Kuehne thomas-dloop at kuehne.cn
Wed Sep 20 12:19:16 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-09-19:
> http://d.puremagic.com/issues/show_bug.cgi?id=355

> If there is only one element, this will not give the compiler problems.
>
> --------------------
>
> enum foo : type {
>         blah1,
>         blah2
> }
>
> --------------------
>
> dmd -run test
> test.d(1): identifier 'type' is not defined
> test.d(1): type is used as a type
> test.d(1): enum test.foo base type must be of integral type, not void
> Assertion failure: '0' on line 160 in file 'enum.c'
>
> abnormal program termination

Added to DStress as
http://dstress.kuehne.cn/nocompile/e/enum_47_A.d
http://dstress.kuehne.cn/nocompile/e/enum_47_B.d
http://dstress.kuehne.cn/nocompile/e/enum_47_C.d
http://dstress.kuehne.cn/nocompile/e/enum_47_D.d
http://dstress.kuehne.cn/nocompile/e/enum_47_E.d
http://dstress.kuehne.cn/nocompile/e/enum_47_F.d
http://dstress.kuehne.cn/nocompile/e/enum_47_G.d
http://dstress.kuehne.cn/nocompile/e/enum_47_H.d
http://dstress.kuehne.cn/nocompile/e/enum_47_I.d
http://dstress.kuehne.cn/nocompile/e/enum_47_J.d
http://dstress.kuehne.cn/nocompile/e/enum_47_K.d

Thomas

-----BEGIN PGP SIGNATURE-----

iD8DBQFFEYmgLK5blCcjpWoRAupPAJ9SnQKDw/HPbyxRUZHTnqWfanP17ACeIEs7
LqI+GXbAhSxY8K7b5Q4ukqY=
=+Lgl
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list