Thread overview
[Issue 18881] extern(C++) classes don't work properly in debuginfo
May 20, 2018
Manu
May 20, 2018
Manu
May 21, 2018
Rainer Schuetze
May 21, 2018
Manu
May 21, 2018
Rainer Schuetze
May 31, 2019
Rainer Schuetze
May 20, 2018
https://issues.dlang.org/show_bug.cgi?id=18881

Manu <turkeyman@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|nobody@puremagic.com        |r.sagitario@gmx.de

--
May 20, 2018
https://issues.dlang.org/show_bug.cgi?id=18881

--- Comment #1 from Manu <turkeyman@gmail.com> ---
Sadly, more of my D code is extern(C++) than not >_<

--
May 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18881

--- Comment #2 from Rainer Schuetze <r.sagitario@gmx.de> ---
The __vfptr is now shown, but the derived class is not available because there is no RTTI for extern(C++) classes.

--
May 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18881

--- Comment #3 from Manu <turkeyman@gmail.com> ---
We don't generate the typeinfo?
Hmm... we probably need to be able to do that at some stage.
Do you know if we reserve the vtable slot for it?

--
May 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18881

--- Comment #4 from Rainer Schuetze <r.sagitario@gmx.de> ---
AFAICT the vtable slot is at __vfptr[-1], but that's not reserved => crash when trying "typeid(*baseCPPptr)".

--
May 31, 2019
https://issues.dlang.org/show_bug.cgi?id=18881

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> ---
dynamic type information is now extracted from the symbol name of the vtbl. See https://github.com/dlang/visuald/releases/tag/v0.50.0-beta1

--