September 08, 2022 [Issue 9704] Destructor not called on function calls if postblit throws | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=9704 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |WORKSFORME --- Comment #6 from RazvanN <razvan.nitu1305@gmail.com> --- Running the code in in comment 2 yields: A:this(this) A:~this A:~this object.Exception@test.d(10) So we can see that both the temporary and `a` are destroyed. This seems to be fixed. -- |
Copyright © 1999-2021 by the D Language Foundation