[Issue 13501] [REG2.052] Crash with throwing in scope(failure) after throwing in scope(success)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 6 13:26:10 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=13501
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #8 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce the crash. I'm getting the failure exception being thrown.
That's because the scope(failure) simply rewrites to:
int careful()
{
try
{
scope(success) throw new Exception("Success");
return victim();
}
catch(Exception)
{
throw new Exception("Failure");
}
}
Is this on par with your expectations Vladimir?
--
More information about the Digitalmars-d-bugs
mailing list