[Issue 355] New: ICE from enum : nonexistent type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 19 14:46:22 PDT 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 at digitalmars.com
ReportedBy: jpelcis at 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
--
More information about the Digitalmars-d-bugs
mailing list