Bug 8254 – nested struct cannot access the types of the parent's fields

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-16T14:18:00Z
Last change time
2014-03-02T13:32:51Z
Keywords
rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2012-06-16T14:18:08Z
DMD 2.059/2.060head struct S{ int s; struct T{ void f(){typeof(s) t;} // error } } The code should compile.
Comment #1 by dlang-bugzilla — 2014-03-02T13:32:51Z
This appears to have been fixed by this pull request: https://github.com/D-Programming-Language/dmd/pull/2897