Bug 12416 – Template specialization with TemplateTupleParameter incorrect ordering

Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-19T14:07:00Z
Last change time
2014-03-28T21:01:13Z
Assigned to
nobody
Creator
john.loughran.colvin

Comments

Comment #0 by john.loughran.colvin — 2014-03-19T14:07:30Z
template Foo(T) { pragma(msg, "1"); } template Foo(A ...) { pragma(msg, "4"); } alias foo1 = Foo!(int); This prints 4, not 1. This is wrong according to the docs: "If both a template with a tuple parameter and a template without a tuple parameter exactly match a template instantiation, the template without a TemplateTupleParameter is selected."
Comment #1 by andrej.mitrovich — 2014-03-19T14:10:35Z
This was fixed in git-head, there was a report already but I can't find it right now.
Comment #2 by k.hara.pg — 2014-03-28T21:01:13Z
*** This issue has been marked as a duplicate of issue 2025 ***