D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14907 - DMD crash when using template name as a default value of template's typed argument
Summary: DMD crash when using template name as a default value of template's typed arg...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2015-08-11 17:59 UTC by Daniel Čejchan
Modified: 2023-01-01 06:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Daniel Čejchan 2015-08-11 17:59:48 UTC
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;
}
Comment 2 github-bugzilla 2018-01-18 10:39:25 UTC
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>
Comment 3 Dlang Bot 2021-04-02 05:45:19 UTC
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
Comment 4 Dlang Bot 2022-12-28 12:46:28 UTC
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
Comment 5 Dlang Bot 2023-01-01 06:25:00 UTC
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