[Issue 14468] New: [Reg 2.068.0-devel] overload mismatch for template instance with typesafe variadic parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 19 20:28:55 PDT 2015


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: nobody at puremagic.com
          Reporter: code at dawg.eu

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.

--


More information about the Digitalmars-d-bugs mailing list