Bug 12264 – [REG2.066a] A specialized alias parameter conflicts with the unspecialized one.

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

Comments

Comment #0 by k.hara.pg — 2014-02-25T23:48:56Z
Caused by fixing issue 12077. Test case: template X(alias T1) { pragma(msg, "1"); } template X(alias T2 : B!A, alias B, A...) { pragma(msg, "2"); } struct S(T) {} void main() { alias x3 = X!(S!int); // should prefer the second template }
Comment #1 by k.hara.pg — 2014-02-25T23:53:48Z
Comment #2 by dlang-bugzilla — 2014-02-26T00:12:14Z
Looks related to issue 12261 and issue 12262. All three are affected by the same change.
Comment #3 by k.hara.pg — 2014-02-26T00:45:55Z
(In reply to comment #2) > Looks related to issue 12261 and issue 12262. All three are affected by the > same change. Issue 11261 is an intentional change. Issue 12262 is a regression, but is not same as this.
Comment #4 by github-bugzilla — 2014-02-26T23:44:29Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/eb6843cd24feeb95bfe76dc99a56bee83e3ca4a0 fix Issue 12264 - A specialized alias parameter conflicts with the unspecialized one. https://github.com/D-Programming-Language/dmd/commit/a18bf7618bb423bac8cde477dc18c7d160606555 Merge pull request #3339 from 9rnsr/fix12264 [REG2.066a] Issue 12264 - A specialized alias parameter conflicts with the unspecialized one.