[Issue 13501] New: Crash with throwing in scope(failure) after throwing in scope(success)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Sep 19 21:01:08 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13501
Issue ID: 13501
Summary: Crash with throwing in scope(failure) after throwing
in scope(success)
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: EH, wrong-code
Severity: critical
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: thecybershadow at gmail.com
///////////////////// test.d /////////////////////
int careful()
{
scope(failure) throw new Exception("Failure");
scope(success) throw new Exception("Success");
return victim();
}
int victim()
{
return 0;
}
void main()
{
careful();
}
//////////////////////////////////////////////////
--
More information about the Digitalmars-d-bugs
mailing list