← Back to index
|
Original Bugzilla link
Bug 214 – seg-v from scope() in switch
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2006-06-20T11:56:00Z
Last change time
2014-02-15T13:18:37Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
shro8822
Comments
Comment #0
by shro8822 — 2006-06-20T11:56:56Z
Unreachable scope statement in switch statement causes seg-v. void main() { switch(1) { // case 0: // compiles with this line scope(exit) *cast(int*)null = 0; default: } }
Comment #1
by thomas-dloop — 2007-01-23T06:05:17Z
Marked this issue as the duplicate one because #729 has the test cases. *** This bug has been marked as a duplicate of 729 ***