Bug 9846 – regression of forward references

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-31T07:31:00Z
Last change time
2013-04-03T10:31:44Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
zan77137

Comments

Comment #0 by zan77137 — 2013-03-31T07:31:56Z
This code doesn't work on git master HEAD(8b9d88d19fe4bb239209c004230fd5ac271436c3): -------- const int A = B; enum { B = 1 } void main(){} -------- $ dmd -run main main.d(1): Error: undefined identifier B, did you mean variable A?
Comment #1 by k.hara.pg — 2013-04-01T05:45:15Z
Comment #2 by github-bugzilla — 2013-04-03T10:28:46Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/181b315e822d0ada67b81863d03a1b0bb9aac47d fix Issue 9846 - regression of forward references 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