Bug 15565 – Forward reference error with namespaces

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-14T05:37:00Z
Last change time
2016-03-19T20:21:37Z
Keywords
C++
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2016-01-14T05:37:58Z
The following fails: alias X2 = X; extern (C++, ns) struct X {} Error: undefined identifier 'X But the following succeeds: extern (C++, ns) struct X {} alias X2 = X; Both should succeed.
Comment #1 by bugzilla — 2016-01-15T02:23:29Z
Comment #2 by github-bugzilla — 2016-01-15T04:37:02Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f42cc3b4d8b55a4dc3e75eb97e73ea82b8696f34 fix Issue 15565 - Forward reference error with namespaces https://github.com/D-Programming-Language/dmd/commit/7137863ca4f77830660220015b73c50834b1c6ad Merge pull request #5351 from WalterBright/fix15565 fix Issue 15565 - Forward reference error with namespaces
Comment #3 by github-bugzilla — 2016-03-19T20:21:37Z