--- void t(alias a)() if(is(typeof(a()))) {} void failure() { void f() {} alias t!f x; // "does not match template declaration" } --- introduced by commit 47a6eab28b169849e835ea1299a811ec946f1a89 (Add escape check to nested function symbol)
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/960f6fd4404750ab2d637f66d63ff70c98f5b73c fix Issue 7416 - 2.058 regression: fails to instantiate a constrained function template with a nested function