[Issue 10788] New: Regression: forward reference of enum member E from another module.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 9 11:44:46 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10788
Summary: Regression: forward reference of enum member E from
another module.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ibuclaw at ubuntu.com
--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-08-09 11:44:45 PDT ---
Regression within the last 11 months at most was when this was last working (I
know it looks odd, but minimal tests of 2K+ projects always do).
A.d:
---
module A;
import B;
enum MyEnum F = E;
---
B.d:
---
module B;
import A;
enum : uint { E } // Fails
//enum { E } // OK
alias uint MyEnum;
---
Run: dmd -c B.d
---
A.d(3): Error: forward reference of enum member E
---
--
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