Bug 13203 – conflicting aliases allowed with static if

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-25T19:43:00Z
Last change time
2015-08-30T12:43:37Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
hoganmeier

Comments

Comment #0 by hoganmeier — 2014-07-25T19:43:26Z
template F(int v) { alias A = int; static if (v) alias A = uint; } alias B = F!1; pragma(msg, B.A); $ dmd -c test.d int
Comment #1 by k.hara.pg — 2015-07-16T13:24:15Z
Comment #2 by github-bugzilla — 2015-08-30T12:43:36Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/520156c295d2ea1ad71200b6e6000d6c83f61d50 fix Issue 13203 - conflicting aliases allowed with static if https://github.com/D-Programming-Language/dmd/commit/c7ae3ce74bcb97157e1a62dd282871031b0c9408 Merge pull request #4816 from 9rnsr/fix13203 Issue 13203 - conflicting aliases allowed with static if