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.