From: http://forum.dlang.org/thread/jbxscocwxabfwoatjsxa@forum.dlang.org Following code should work, but doesn't. struct CborConfig(a, b) {} struct NonSerialized {} alias defaultCborConfig = CborConfig!(NonSerialized, NonSerialized); void accepter(Config : CborConfig!(T) = defaultCborConfig, T...)() { pragma(msg, T); } void main() { //accepter!()(); // ok accepter(); // Line 15 } output: test.d(15): Error: template test.accepter cannot deduce function from argument types !()(), candidates are: test.d(7): test.accepter(Config : CborConfig!T = defaultCborConfig, T...)()
https://github.com/D-Programming-Language/dmd/pull/4408
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0c853825e5d3ee0d8cd616a63eca61675b183f63 fix Issue 14174 - Weird IFTI deduction failure https://github.com/D-Programming-Language/dmd/commit/49d25b3e942e87ac888dfc08450d8fabe6b7484f Merge pull request #4408 from 9rnsr/fix14174 Issue 14174 - Weird IFTI deduction failure
Commits pushed to https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0c853825e5d3ee0d8cd616a63eca61675b183f63 fix Issue 14174 - Weird IFTI deduction failure https://github.com/D-Programming-Language/dmd/commit/49d25b3e942e87ac888dfc08450d8fabe6b7484f Merge pull request #4408 from 9rnsr/fix14174
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0c853825e5d3ee0d8cd616a63eca61675b183f63 fix Issue 14174 - Weird IFTI deduction failure https://github.com/D-Programming-Language/dmd/commit/49d25b3e942e87ac888dfc08450d8fabe6b7484f Merge pull request #4408 from 9rnsr/fix14174
Commits pushed to dmd-cxx at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/0c853825e5d3ee0d8cd616a63eca61675b183f63 fix Issue 14174 - Weird IFTI deduction failure https://github.com/dlang/dmd/commit/49d25b3e942e87ac888dfc08450d8fabe6b7484f Merge pull request #4408 from 9rnsr/fix14174