D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19336 - [ICE] segfault on invalid code
Summary: [ICE] segfault on invalid code
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-27 10:37 UTC by Paolo Invernizzi
Modified: 2019-06-16 20:57 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 Paolo Invernizzi 2018-10-27 10:37:37 UTC
OSX, dmd 2.083.0 beta 1 and master

---
struct Foo {
        Template!() a(a.x);
}
---

dmd  -c -o-  app.d
app.d(3): Error: template instance `Template!()` template Template is not defined
Segmentation fault: 11
Comment 1 RazvanN 2018-11-01 13:03:30 UTC
PR: https://github.com/dlang/dmd/pull/8899
Comment 2 github-bugzilla 2018-11-02 07:10:43 UTC
Commit pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/a871becfb3a9b8de8122106d2b2a9060407812d0
Fix Issue 19336 - [ICE] segfault on invalid code
Comment 3 Dlang Bot 2019-06-16 20:57:32 UTC
dlang/dmd pull request #10046 "[dmd-cxx] Backport semanticRun refactoring and recursive semantic SEGV bug fixes" was merged into dmd-cxx:

- e57883c325210ea20a053a8a3b0de3cf583cddf2 by RazvanN7:
  Fix Issue 19336 - [ICE] segfault on invalid code

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