[Issue 14903] Destructors for arguments completely broken
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Aug 11 11:06:55 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14903
kinke at gmx.net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #4 from kinke at gmx.net ---
Well, what 'should' happen looks pretty straight-forward to me - the dtors of
all live temporaries are to be called in any case, and any exceptions thrown by
dtors are to be linked to an exception chain. That's what D already does for
params/locals, as shown by case 1.
I just find it sad that such a horrible bug can make it into a 2nd fresh
release. It's literally one of the first things I was thinking about when
tackling proper destruction of complex expression trees for LDC. We definitely
need more testing, and define test cases and expected outcomes before
implementing new, non-trivial features.
--
More information about the Digitalmars-d-bugs
mailing list