[Issue 24139] 'this' corruption in extern(C++) dtor when destructing via TypeInfo_Struct
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 16 07:31:19 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24139
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15609 "merge stable" was merged into master:
- fbafba879073b33b3d2f235b7ebd3bc3a508248d by Martin Kinkelin:
Fix Issue 24139 - 'this' corruption in extern(C++) dtor when destructing via
TypeInfo_Struct (#15598)
For the `TypeInfo_Struct.xdtor` field, the linkage of the aggregate
itself plays no role; it's the linkage of the destructor that matters.
A real-life example for this is DMD's own `OutBuffer`.
https://github.com/dlang/dmd/pull/15609
--
More information about the Digitalmars-d-bugs
mailing list