digitalmars.D.bugs - [Issue 355] New: ICE from enum : nonexistent type
- d-bugmail puremagic.com Sep 19 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Sep 20 2006
- d-bugmail puremagic.com Sep 30 2006
- Thomas Kuehne <thomas-dloop kuehne.cn> Oct 02 2006
- d-bugmail puremagic.com Nov 25 2006
http://d.puremagic.com/issues/show_bug.cgi?id=355 Summary: ICE from enum : nonexistent type Product: D Version: 0.167 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-invalid-code Severity: minor Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: jpelcis gmail.com 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 --
Sep 19 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail 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-----
Sep 20 2006
http://d.puremagic.com/issues/show_bug.cgi?id=355 ------- Comment #2 from deewiant gmail.com 2006-09-30 09:44 ------- Also happens if the base type is void: enum foo : void { a, b } --
Sep 30 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-09-30:http://d.puremagic.com/issues/show_bug.cgi?id=355
------- Comment #2 from deewiant gmail.com 2006-09-30 09:44 ------- Also happens if the base type is void: enum foo : void { a, b }
Added to DStress as http://dstress.kuehne.cn/nocompile/e/enum_47_L.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFIMrjLK5blCcjpWoRAj93AJ4k35Aj3UskYB40m55pbBtkpfOxuwCfefdR 1eyRAEShZIF/8bcH/rSoep0= =r+fe -----END PGP SIGNATURE-----
Oct 02 2006
http://d.puremagic.com/issues/show_bug.cgi?id=355 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #4 from bugzilla digitalmars.com 2006-11-25 03:49 ------- Fixed DMD 0.175 --
Nov 25 2006









Thomas Kuehne <thomas-dloop kuehne.cn> 