[Issue 16960] implicit function return breaks chaining of exceptions thrown in scope(exit)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 14 13:50:28 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16960
Mathias LANG <pro.mathias.lang at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pro.mathias.lang at gmail.com
--- Comment #1 from Mathias LANG <pro.mathias.lang at gmail.com> ---
This is UB, according to
http://dlang.org/spec/statement.html#ScopeGuardStatement
> A scope(exit) or scope(success) statement may not exit with a throw, goto, break, continue, or return; nor may it be entered with a goto.
--
More information about the Digitalmars-d-bugs
mailing list