← Back to index
|
Original Bugzilla link
Bug 729 – scope(...) statement in SwitchBody causes compiler to segfault
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-23T07:12:00Z
Last change time
2014-02-15T13:18:35Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-12-23T07:12:07Z
(Originally reported by <
[email protected]
> on 2006-06-16 in news:
[email protected]
) # # void main(){ # int i = 2; # # switch(3){ # scope(exit) i--; # # default: # } # # if(i != 2){ # assert(0); # } # } # GDC isn't affected by this. test cases:
http://dstress.kuehne.cn/run/s/switch_22_A.d
http://dstress.kuehne.cn/run/s/switch_22_B.d
http://dstress.kuehne.cn/run/s/switch_22_C.d
http://dstress.kuehne.cn/run/s/switch_22_D.d
http://dstress.kuehne.cn/run/s/switch_22_E.d
http://dstress.kuehne.cn/run/s/switch_22_F.d
http://dstress.kuehne.cn/run/s/switch_22_G.d
http://dstress.kuehne.cn/run/s/switch_22_H.d
http://dstress.kuehne.cn/run/s/switch_22_I.d
http://dstress.kuehne.cn/run/s/switch_22_J.d
Comment #1
by thomas-dloop — 2007-01-23T06:05:17Z
*** Bug 214 has been marked as a duplicate of this bug. ***
Comment #2
by thomas-dloop — 2007-01-23T06:06:48Z
Fixed in DMD-1.00
Comment #3
by thomas-dloop — 2007-01-23T06:09:38Z
Sorry, didn't realise that this was a DMD-only issue and confused GDC-0.21 with DMD-1.00.
Comment #4
by bugzilla — 2007-11-03T21:44:54Z
Fixed dmd 1.023 and 2.007