Bug 7781 – [CTFE] Segmentation fault on 'mixin({return;}());'

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-25T16:04:00Z
Last change time
2012-03-29T18:31:01Z
Keywords
ice
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2012-03-25T16:04:35Z
The following code crashes DMD: mixin({return;}());
Comment #1 by k.hara.pg — 2012-03-25T16:42:14Z
This is CTFE issue. In interpret.c, Expression *scrubReturnValue(Loc loc, Expression *e) -> e == EXP_VOID_INTERPRET
Comment #2 by github-bugzilla — 2012-03-29T16:52:10Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/23e616abd92a8f1729ab5742e95dfaba5c798731 Merge pull request #846 from donc/ctfe7781segfault Fix issue 7781 [CTFE] Segmentation fault on 'mixin({return;}());'