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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from SHOO <[email protected]> 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: -------