Bug 8123 – alias declaration lookup is broken

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-20T00:18:00Z
Last change time
2012-05-22T18:05:32Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-05-20T00:18:07Z
From digitalmars.D.learn newsgroup: http://forum.dlang.org/thread/[email protected] struct S { } struct AS { alias S Alias; } struct Wrapper { AS as; } void main() { Wrapper w; static assert(is(typeof(w.as).Alias == S)); // fail static assert(is(AS.Alias == S)); // ok static assert(is(typeof(w.as) == AS)); // ok static assert(is(typeof(w.as).Alias == AS.Alias)); // fail }
Comment #1 by k.hara.pg — 2012-05-20T00:26:45Z
Comment #2 by github-bugzilla — 2012-05-20T14:54:15Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/76543ef60f3b871612ddc0c87999859f427ba6f9 fix Issue 8123 - alias declaration lookup is broken https://github.com/D-Programming-Language/dmd/commit/77422c31beae5db7d867c6611256482e07048f37 Merge pull request #957 from 9rnsr/fix8123 Issue 8123 - alias declaration lookup is broken