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

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7781 - [CTFE] Segmentation fault on 'mixin({return;}());'
Summary: [CTFE] Segmentation fault on 'mixin({return;}());'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice
Depends on:
Blocks:
Reported: 2012年03月25日 16:04 UTC by timon.gehr
Modified: 2012年03月29日 18:31 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2012年03月25日 16:04:35 UTC
The following code crashes DMD:
mixin({return;}());
Comment 1 Kenji Hara 2012年03月25日 16:42:14 UTC
This is CTFE issue.
In interpret.c,
Expression *scrubReturnValue(Loc loc, Expression *e)
-> e == EXP_VOID_INTERPRET
Comment 2 github-bugzilla 2012年03月29日 16:52:10 UTC
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;}());'


AltStyle によって変換されたページ (->オリジナル) /