Bug 13245 – segfault when instantiating template with non-compiling function literal

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-03T18:17:00Z
Last change time
2014-08-06T05:32:12Z
Keywords
ice, pull
Assigned to
nobody
Creator
nilsbossung

Comments

Comment #0 by nilsbossung — 2014-08-03T18:17:07Z
git head segfaults. 2.066.0-rc1 segfaults. 2.066.0-b6 and older work. --- cat > test.d << code template T(alias f) {} static assert(!is(T!((int x) {return invalid;}))); /* no segfault without "return" */ code dmd -c test.d --- Segmentation fault (core dumped) ---
Comment #1 by dlang-bugzilla — 2014-08-04T11:52:10Z
Comment #2 by k.hara.pg — 2014-08-05T13:55:29Z
The root issue is same with bug 13225. https://github.com/D-Programming-Language/dmd/pull/3840
Comment #3 by github-bugzilla — 2014-08-06T05:32:11Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4b773e4dc9903c339d6a83381774710231000aea fix Issue 13245 - segfault when instantiating template with non-compiling function literal