March 28 [Issue 24462] New: scope(failure) with a throw expression breaks safety | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24462 Issue ID: 24462 Summary: scope(failure) with a throw expression breaks safety Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid, safe Severity: critical Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: elpenguino+D@gmail.com ``` 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 -- |
Copyright © 1999-2021 by the D Language Foundation