[Issue 15626] extern(C++) calling crash
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Feb 5 02:52:21 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15626
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
https://github.com/D-Programming-Language/dmd/pull/5403
There's no easy way to hack this in. The trouble is you have a C++ base class
with no virtual functions, so it has no vtbl[]. I.e. is it not a class at all,
it is a struct. This is not supported.
The way to fix the code is to replace interface I with abstract class I, move
the fields from C into I, and ditch class C entirely.
--
More information about the Digitalmars-d-bugs
mailing list