Bug 7615 – Error aliasing an enum member through an alias of a type inside a struct

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-29T22:44:00Z
Last change time
2012-04-22T14:00:57Z
Keywords
rejects-valid
Assigned to
nobody
Creator
siegelords_abode

Comments

Comment #0 by siegelords_abode — 2012-02-29T22:44:23Z
Works in D1 (1.073) but not in D2 (2.058): struct A { enum { E } } alias A A2; alias A2.E E2; // Fine struct B { alias A.E E1; // Fine alias A A2; alias A2.E E2; // Error: alias test.B.E2 cannot alias an expression 0 }
Comment #1 by lovelydear — 2012-04-20T02:42:27Z
This compiles on dmd 2.059 Win32
Comment #2 by siegelords_abode — 2012-04-22T14:00:57Z
Yes, works for me now too.