Bug 17086 – DMD segfault with multiple template matches and invalid code

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-01-13T18:26:00Z
Last change time
2017-03-22T12:21:04Z
Keywords
ice
Assigned to
mathias.lang
Creator
mathias.lang

Comments

Comment #0 by mathias.lang — 2017-01-13T18:26:30Z
Not sure how to describe this one, besides the test case: ``` void testXXXX (T, T V = T.init) (T x) { assert(x.foo); } void testXXXX (T, T V = T.init) (T y) { assert(y.bar); } void main () { bool f; testXXXX(f); } ``` P.R. coming up.
Comment #1 by bugzilla — 2017-01-14T06:19:53Z
Comment #2 by github-bugzilla — 2017-01-14T06:21:03Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/90914abd5cec32199a5e81acf7d405366d8018df Fix issue 17086: DMD segfault with multiple template matches and invalid code The two conditions in mtype and expression can be simplified, because in the event of 'e' being , we end up with a segfault. Moreover, the code was just missing a couple of null checks. https://github.com/dlang/dmd/commit/13556d6dd5d877dea19059fd42c5bc2332875751 Merge pull request #6438 from mathias-lang-sociomantic/segv Fix issue 17086: DMD segfault with multiple template matches and invalid code
Comment #3 by github-bugzilla — 2017-01-16T23:26:32Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/90914abd5cec32199a5e81acf7d405366d8018df Fix issue 17086: DMD segfault with multiple template matches and invalid code https://github.com/dlang/dmd/commit/13556d6dd5d877dea19059fd42c5bc2332875751 Merge pull request #6438 from mathias-lang-sociomantic/segv
Comment #4 by github-bugzilla — 2017-03-22T12:21:04Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/90914abd5cec32199a5e81acf7d405366d8018df Fix issue 17086: DMD segfault with multiple template matches and invalid code https://github.com/dlang/dmd/commit/13556d6dd5d877dea19059fd42c5bc2332875751 Merge pull request #6438 from mathias-lang-sociomantic/segv