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 ---
Comment #1 by henning — 2013-08-10T05:39:24Z
Comment #2 by github-bugzilla — 2013-08-11T17:10:01Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9cdf4dcd2a4d21e3019493d19277c3b135ee6c22 fix issue 10788 - forward reference of enum member E from another module https://github.com/D-Programming-Language/dmd/commit/1e14c27c91d74b0c1281ac3d0b08d8edc74f4eb2 Merge pull request #2462 from hpohl/10788 [REG??] fix issue 10788 - forward reference of enum member E from another module