Bug 7163 – Can't alias an enum of an aliased struct

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-12-24T18:12:00Z
Last change time
2012-04-19T19:00:06Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-12-24T18:12:35Z
This is a real bug from the DIL compiler: struct Foo { enum { One, } } struct Bar { alias Foo F; alias F.One First; // alias Foo.One First; would work } void main() {} test.d(14): Error: alias test.Bar.First cannot alias an expression 0 What's interesting is that this compiles fine in DMD1.
Comment #1 by andrej.mitrovich — 2012-04-19T19:00:06Z
Fixed in 2.059, don't know which commit.