[Issue 2351] New: enum with no members allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 10 02:46:43 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2351
Summary: enum with no members allowed
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: tomas at famolsen.dk
The spec grammar allows EnumBody to be just a semicolon, however a little
further down it also says that enums must have at least one member.
This compiles however:
enum a;
--
More information about the Digitalmars-d-bugs
mailing list