Bug 10788 – Regression: forward reference of enum member E from another module.
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-09T11:44:00Z
Last change time
2013-08-11T19:17:18Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
ibuclaw
Comments
Comment #0 by ibuclaw — 2013-08-09T11:44:45Z
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
---