Bug 8125 – TypeInstance dedunction problem

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

Comments

Comment #0 by k.hara.pg — 2012-05-20T09:27:23Z
Following code should compile. void foo(){} struct X(alias a) {} //template Y(T : A!f, alias A, alias f) {} //OK template Y(T : A!foo, alias A) {} //NG void main() { alias Y!(X!foo) y; // Error: template instance Y!(X!(foo)) Y!(X!(foo)) // does not match template declaration Y(T : A!(foo),alias A) }
Comment #1 by k.hara.pg — 2012-05-20T09:52:04Z
Comment #2 by github-bugzilla — 2012-05-20T12:48:14Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/630f7cbab6ea58606cef726939e2ee4cf652e217 fix Issue 8125 - TypeInstance dedunction problem https://github.com/D-Programming-Language/dmd/commit/ed68238cd1e5a7aec454840ee11e04580f974855 Merge pull request #958 from 9rnsr/fix_tided Issue 1780 & 3608 & 8125 - Fix TypeInstance deduction problems