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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@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: -------

Reply via email to