[Issue 9334] Dtor and postblit for struct heap object are not always called

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 31 11:07:40 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=9334

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #4 from RazvanN <razvan.nitu1305 at gmail.com> ---
This has been fixed. Running the code in the OP I get:

0 dtor

It seems that the memory is allocated and it is destroyed at the end of the
program. This is the correct behavior.

--


More information about the Digitalmars-d-bugs mailing list