Bug 24462 – scope(failure) with a throw expression breaks safety

Status
NEW
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-03-28T16:46:34Z
Last change time
2024-12-13T19:34:13Z
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#18225 →

Comments

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