Bug 12263 – Specialized template parameter incorrectly fail to match to the same name template.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-25T23:10:00Z
Last change time
2014-02-27T00:53:00Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-02-25T23:10:22Z
Test case: template A(alias a) { int x; } template B(alias a) { int x; } template fqnSym(alias T : B!A, alias B, A...) { enum fqnSym = "match"; } // A!Object matches to B!A pragma(msg, fqnSym!(A!(Object))); // But, B!Object does not match to B!A pragma(msg, fqnSym!(B!(Object)));
Comment #1 by k.hara.pg — 2014-02-25T23:14:18Z
Comment #2 by github-bugzilla — 2014-02-26T23:45:38Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c170cacb5acdf3424746348bea86f2a1566987d7 fix Issue 12263 - Specialized template parameter incorrectly fail to match to the same name template https://github.com/D-Programming-Language/dmd/commit/f73abdc37caaba30069496d5b0ca3e95ca08370d Merge pull request #3338 from 9rnsr/fix12263 Issue 12263 - Specialized template parameter incorrectly fail to match to the same name template