https://issues.dlang.org/show_bug.cgi?id=13333
--- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5b5945a818aca281844a3c029139abd98c08004d fix Issue 13333 - Incorrect error ungagging during the resolution of forward references Improve forward reference resolution in template instantiation with alias - Check needGagging in TemplateInstance::semantic2() - Set TemplateInstance::speculative if global.gag is set in semantic() https://github.com/D-Programming-Language/dmd/commit/78c3fd2965911d191fe05db91ef9d8a5fffd5638 Merge pull request #3878 from 9rnsr/fix13333 Issue 13333 - Incorrect error ungagging during the resolution of forward references --