1879 – Compiler segfaults on 'scope' and 'static if'

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1879 - Compiler segfaults on 'scope' and 'static if'
Summary: Compiler segfaults on 'scope' and 'static if'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年02月28日 16:16 UTC by Max Samukha
Modified: 2014年02月24日 15:33 UTC (History)
0 users

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 Max Samukha 2008年02月28日 16:16:01 UTC
This combination of 'scope' and 'static if' causes the compiler to segfault:
The workaround is to use try/finally
void main()
{
 scope (exit)
 {
 }
 
 static if (false) // Compiles if true;
 {
 }
}
Comment 1 Walter Bright 2008年03月07日 00:42:54 UTC
Fixed dmd 1.028


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