[Issue 10530] New: Initializers inside named enum declarations cannot forward reference other members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 3 09:48:02 PDT 2013


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

           Summary: Initializers inside named enum declarations cannot
                    forward reference other members
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2013-07-03 09:48:00 PDT ---
DMD 2.063/git head:

enum X {foo=0, bar=foo} // ok
enum Y {foo=bar, bar=0} // error

Both lines should compile.

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