Bug 24463 – scope(failure) with a break/continue breaks safety

Status
NEW
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-03-28T16:48:25Z
Last change time
2024-12-13T19:34:14Z
Keywords
accepts-invalid, safe
Assigned to
No Owner
Creator
elpenguino+D
See also
https://issues.dlang.org/show_bug.cgi?id=24460
Moved to GitHub: dmd#20428 →

Comments

Comment #0 by elpenguino+D — 2024-03-28T16:48:25Z
``` void main() @safe { do { scope(failure) break; assert(0); } while(0); } ``` ``` void main() @safe { do { scope(failure) continue; assert(0); } while(0); } ``` Essentially the same issue as https://issues.dlang.org/show_bug.cgi?id=24460
Comment #1 by robert.schadek — 2024-12-13T19:34:14Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20428 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB