Thread overview
[Issue 21392] extern(C++) No support for virtual inheritance ABI
Mar 25, 2021
Nicholas Wilson
Mar 25, 2021
Iain Buclaw
Dec 17, 2022
Iain Buclaw
March 25, 2021
https://issues.dlang.org/show_bug.cgi?id=21392

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #1 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
is this the same issue as https://issues.dlang.org/show_bug.cgi?id=19192 ? it has just been fixed.

--
March 25, 2021
https://issues.dlang.org/show_bug.cgi?id=21392

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Nicholas Wilson from comment #1)
> is this the same issue as https://issues.dlang.org/show_bug.cgi?id=19192 ? it has just been fixed.

Unless that issue adds virtual inheritance to D, I'd say no.

This issue is more about ABI compatibility with thunks.  In C++ you have have thunks adjust the `this' pointer for straightforward inheritance (same as D). However for virtual inheritance, thunks instead adjust the `__vptr', or both the `this' and `__vptr' pointers within the same thunk.  D has no notion of fixing the index into the vtable during a thunk call.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21392

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=21392

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17998

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--