Hey, this code makes the compiler crash (I know it isn't valid): module main; private struct Template( void var = Template ) {} void main() { Template!() instance; }
https://github.com/D-Programming-Language/dmd/pull/4882
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a49866792e19631fed5d352aebc83ca6aa3222b2 fix Issue 14907 - DMD crash when using template name as a default value of template's typed argument https://github.com/dlang/dmd/commit/6dd820f9c09bd757fb3e31600b1dec8ce0628a12 Merge pull request #7702 from ibuclaw/fix14907 fix Issue 14907 - DMD crash when using template name as a default value of template's typed argument merged-on-behalf-of: Mike Franklin <JinShil@users.noreply.github.com>
dlang/dmd pull request #12339 "[dmd-cxx] Backport fixes and trivial features from upstream dmd" was merged into dmd-cxx: - d5278052911c7b40f0a6d625d96022d456c1752b by Iain Buclaw: [dmd-cxx] fix Issue 14907 - DMD crash when using template name as a default value of template's typed argument https://github.com/dlang/dmd/pull/12339
dlang/dmd pull request #14745 "fix Issue 18646 - [REG 2.079.0] Recursive template expansion incorrectly reported" was merged into stable: - 55eeb4bf888169e734033ec2f77ae1a6cdc843c1 by Iain Buclaw: fix Issue 14907 without introducing TemplateDeclaration.inuse field https://github.com/dlang/dmd/pull/14745
dlang/dmd pull request #14765 "merge stable" was merged into master: - d4600cb033698e0aecdf544880ec8c94e572de99 by Iain Buclaw: fix Issue 14907 without introducing TemplateDeclaration.inuse field https://github.com/dlang/dmd/pull/14765