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: [email protected]
Reporter: [email protected]
```
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
--