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

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-02-28T16:16:00Z
Last change time
2014-02-24T15:33:39Z
Assigned to
bugzilla
Creator
samukha

Comments

Comment #0 by samukha — 2008-02-28T16:16:01Z
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 by bugzilla — 2008-03-07T00:42:54Z
Fixed dmd 1.028