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

           Summary: enum forward reference error when enum is in braces
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Andrej Mitrovic <[email protected]> 2012-03-16 
16:06:18 PDT ---
enum foo = bar;
enum {
    bar = 1
}
void main() { }

test.d(3): Error: undefined identifier bar

Yet this works ok:
enum foo = bar;
enum bar = 1;
void main() { }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to