D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19915 - ICE: Segmentation fault with alias and templated class
Summary: ICE: Segmentation fault with alias and templated class
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: pull
Depends on:
Blocks:
 
Reported: 2019-05-28 20:15 UTC by Iain Buclaw
Modified: 2019-06-09 05:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2019-05-28 20:15:52 UTC
Similar to issue 19914.

class a (b) { align.c d; }
alias a!(int) e;
Comment 1 Iain Buclaw 2019-06-01 12:57:08 UTC
The test case could be inferred as being segfault on invalid, it is valid code, albeit odd that there's no space between align and .c

This code has the same segfault and backtrace.

class a(b) { align int d; }
alias a!(int) e;
Comment 2 Dlang Bot 2019-06-01 13:24:32 UTC
@ibuclaw created dlang/dmd pull request #9938 "fix Issue 19914/19915 - ICE: Segmentation fault using align in a templated class" fixing this issue:

- fix Issue 19915 - ICE: Segmentation fault with alias and templated class

https://github.com/dlang/dmd/pull/9938
Comment 3 Dlang Bot 2019-06-01 14:27:23 UTC
dlang/dmd pull request #9938 "fix Issue 19914/19915 - ICE: Segmentation fault using align in a templated class" was merged into stable:

- eef16ada0b9f3b5b764ae59f80d72ce0a500e8cb by Iain Buclaw:
  fix Issue 19915 - ICE: Segmentation fault with alias and templated class

https://github.com/dlang/dmd/pull/9938
Comment 4 Dlang Bot 2019-06-09 05:38:37 UTC
dlang/dmd pull request #10001 "[dmd-cxx]  fix Issue 19914 - ICE: Segmentation fault with mixin and templated class " was merged into dmd-cxx:

- 51d9234dcc380ec5cf30239576fad54530631fe4 by Iain Buclaw:
  fix Issue 19915 - ICE: Segmentation fault with alias and templated class

https://github.com/dlang/dmd/pull/10001