[Issue 19119] App crashes with strange behavior of ctors/dtors from CPP

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 26 19:44:05 UTC 2018


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

kinke at gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #1 from kinke at gmx.net ---
Confirmed. It's the 3rd iteration only because GC collection is triggered then;
adding `import core.memory; GC.collect();` after destroy makes it segfault in
the 1st iteration, as does using `delete(bar);` instead of destroy.

I guess there's something wrong with the dtor field of the ClassInfo.

--


More information about the Digitalmars-d-bugs mailing list