[Issue 9704] Destructor not called on function calls if postblit throws
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 8 14:39:08 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=9704
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WORKSFORME
--- Comment #6 from RazvanN <razvan.nitu1305 at gmail.com> ---
Running the code in in comment 2 yields:
A:this(this)
A:~this
A:~this
object.Exception at test.d(10)
So we can see that both the temporary and `a` are destroyed.
This seems to be fixed.
--
More information about the D.gnu
mailing list