On Sunday, 6 June 2021 at 11:54:40 UTC, Mathias LANG wrote:
>We currently have a random crash which seems to trigger when a
C++ object is destructed by the GC (to be precise: the GC
finalizes a class
that holds an std::vector
), but that
might just be our bindings...
extern(C++) class support is critically incomplete/buggy right now, even for basic usage that doesn't involve templates or multiple inheritance. Are you aware of these bugs?
Issue 21693 - extern(C++) class instance dtors are never called, breaking RAII:
https://issues.dlang.org/show_bug.cgi?id=21693
Issue 21690 - Unable to dynamic cast extern(C++) classes
(Dynamic casts of extern(C++) classes are silently lowered to unchecked static casts):
https://issues.dlang.org/show_bug.cgi?id=2169