[Issue 9845] New: enum value should be able to contain forward references in global scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 31 06:52:47 PDT 2013


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

           Summary: enum value should be able to contain forward
                    references in global scope
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2013-03-31 06:52:46 PDT ---
This code doesn't work:
-----------
enum { A = B }
enum { B = 1 }
void main(){}
-----------
$ dmd -run main
main.d(1): Error: undefined identifier B

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