D-Programming-Language/dmd — pull request #4091 by 9rnsr (2014-10-26 03:59:30+00:00)
Title: Issue 12447 & 11915 & 11916 - fix overload resolution issue around IFTI and out parameter

[Issue 12447](https://issues.dlang.org/show_bug.cgi?id=12447) - variadic template functions hijack all eponymous enum and alias template overloads
[Issue 11915](https://issues.dlang.org/show_bug.cgi?id=11915) - Inconsistent overload resolution behaviour between `ref` and `out`
[Issue 11916](https://issues.dlang.org/show_bug.cgi?id=11916) - [IFTI] Disabled by constraint overload with `out` with IFTI breaks overload resolution

Issue 12447 and 11916 have same root issue in IFTI. Even if the correctly deduced type parameters will make invalid function signature, the failure should be masked and handled as "no match".

And from the 11916 fix, I noticed that 11915 is just a bug in `TypeFunction::callMatch`. So I fix it in this PR at the same time.