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

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to