[Issue 2351] enum with no members allowed
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Feb 26 05:35:33 PST 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=2351
--- Comment #5 from Jerry Quinn <jlquinn at optonline.net> 2010-02-26 05:35:27 PST ---
I think the semicolon is intended to handle manifest constants.  However, it
doesn't look quite right.
If the grammar is rewritten as follows:
EnumDeclaration:
    enum EnumBody
    enum EnumTag EnumBody
    enum : EnumBaseType EnumBody
    enum EnumTag : EnumBaseType EnumBody
    enum EnumMember ;
EnumBody:
        { EnumMembers }
Then manifest constants will be handled by the grammar, although the compiler
enforces that they need an initializer.
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list