← Back to index
|
Original Bugzilla link
Bug 9845 – enum value should be able to contain forward references in global scope
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-31T06:52:00Z
Last change time
2013-04-03T10:31:22Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
zan77137
Comments
Comment #0
by zan77137 — 2013-03-31T06:52:46Z
This code doesn't work: ----------- enum { A = B } enum { B = 1 } void main(){} ----------- $ dmd -run main main.d(1): Error: undefined identifier B
Comment #1
by andrej.mitrovich — 2013-03-31T10:51:40Z
Dupe of Issue 7719?
Comment #2
by k.hara.pg — 2013-04-01T05:45:05Z
https://github.com/D-Programming-Language/dmd/pull/1821
Comment #3
by k.hara.pg — 2013-04-01T05:46:09Z
(In reply to comment #1) > Dupe of Issue 7719? Yes. the root cause of issue 7719, issue 9845, and issue 9846 are same.
Comment #4
by github-bugzilla — 2013-04-03T10:28:42Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5607c6a10eecd2fc6cec590a33651a13f3642f72
fix Issue 9845 - enum value should be able to contain forward references in global scope
https://github.com/D-Programming-Language/dmd/commit/33ca607a13d799a7fdc96d3be9f10048246863a3
Merge pull request #1821 from 9rnsr/fix9845 Issue 7719,9845,9846 - fix anonymous enum and forward reference problems