https://issues.dlang.org/show_bug.cgi?id=15665
--- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/e8c4f5ed9124a3e18081699789ad5cd6efc7aa94 Fix issue #15665: Templated scope class with constructor doesn't compile While instantiating a template, FuncDeclaration::semantic3 will call into TypeFunction::semantic, but the flags SCOPEctor is only set during CtorDeclaration::semantic. https://github.com/D-Programming-Language/dmd/commit/83be084357b5529d3d9fa2338c8bffb6fa3862c8 Merge pull request #5493 from Dicebot/pick-15665 Cherry-pick fix for issue 15665 into stable --