https://issues.dlang.org/show_bug.cgi?id=14468
Issue ID: 14468
Summary: [Reg 2.068.0-devel] overload mismatch for template
instance with typesafe variadic parameter
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: regression
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
cat > bug.d << CODE
void foo(T)(T[]...)
{
}
void foo(bool flag, T)(T[]...)
{
}
void test()
{
foo!int();
}
CODE
dmd -c bug
----
bug.d(11): Error: template bug.foo cannot deduce function from argument types
!(int)(), candidates are:
bug.d(1): bug.foo(T)(T[]...)
bug.d(5): bug.foo(bool flag, T)(T[]...)
----
Apparently introduced by
https://github.com/D-Programming-Language/dmd/pull/4261.
--