[Issue 4049] New: enum constant with no initializer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 2 14:37:40 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4049

           Summary: enum constant with no initializer
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-04-02 14:37:38 PDT ---
This program correctly gives an error message, but I don't see why this code is
wrong, here f can be just f.init:


struct Foo {}
enum Foo f;
void main() {}


dmd 2.042 gives:

test.d(2): Error: variable test.f manifest constants must have initializers

-- 
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