Bug 14468 – [Reg 2.068.0-devel] overload mismatch for template instance with typesafe variadic parameter

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-20T03:28:00Z
Last change time
2015-06-17T21:04:56Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2015-04-20T03:28:55Z
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.
Comment #1 by code — 2015-04-20T21:58:43Z
*** Issue 14462 has been marked as a duplicate of this issue. ***
Comment #2 by code — 2015-04-20T22:23:33Z
Temporary workaround is to explicitly pass null as typesafe variadic argument.
Comment #3 by k.hara.pg — 2015-04-21T14:58:28Z
Comment #4 by github-bugzilla — 2015-04-21T21:07:09Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9c728ce3a8757050cc50407df34eb3f4d0bbceed fix Issue 14468 - overload mismatch for template instance with typesafe variadic parameter https://github.com/D-Programming-Language/dmd/commit/2c102ce5d55cea1259a27e3e32c850cc39f53d6b Merge pull request #4603 from 9rnsr/fix14468 [REG2.068a] Issue 14468 - overload mismatch for template instance with typesafe variadic parameter
Comment #5 by github-bugzilla — 2015-06-17T21:04:56Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9c728ce3a8757050cc50407df34eb3f4d0bbceed fix Issue 14468 - overload mismatch for template instance with typesafe variadic parameter https://github.com/D-Programming-Language/dmd/commit/2c102ce5d55cea1259a27e3e32c850cc39f53d6b Merge pull request #4603 from 9rnsr/fix14468