[Issue 21693] extern(C++) class instance dtors are never called, breaking RAII
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 13 21:34:48 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21693
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #3 from kinke <kinke at gmx.net> ---
The GC could presumably handle C++ classes like structs, where the
TypeInfo_Struct pointer is stored after the struct instance IIRC. For C++
classes, it could store the D TypeInfo_Class pointer after the class instance
(but note that class instances have no tail padding, so some padding might be
needed for an aligned TypeInfo pointer).
--
More information about the Digitalmars-d-bugs
mailing list