April 26, 2019 [Issue 19831] New: throw/catch in scope(exit) crashes with illegal instruction | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19831 Issue ID: 19831 Summary: throw/catch in scope(exit) crashes with illegal instruction Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: default_357-line@yahoo.de Since DMD 2.076, the following code crashes with a segfault or illegal instruction: import std.stdio; void foo() { try throw new Exception(""); catch (Exception ex) writefln("got ex %s", ex); } void main() { scope(exit) foo(); writeln("Hello D"); throw new Exception("Foob"); } It worked in all previous versions back to 2.060. -- |
Copyright © 1999-2021 by the D Language Foundation