Thread overview
[Issue 23017] C++ class may not derive from D class
Apr 15, 2022
Dennis
Apr 15, 2022
Dlang Bot
Apr 17, 2022
Dlang Bot
April 15, 2022
https://issues.dlang.org/show_bug.cgi?id=23017

Dennis <dkorpel@live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel@live.nl
           Hardware|x86_64                      |All
            Summary|Deriving C++ class from D   |C++ class may not derive
                   |one valid?                  |from D class
                 OS|Linux                       |All

--- Comment #1 from Dennis <dkorpel@live.nl> ---
It's indeed not valid:

https://dlang.org/spec/cpp_interface.html#classes

> Unlike classes and interfaces with D linkage, extern (C++) classes and interfaces are not rooted in Object and cannot be used with typeid.

--
April 15, 2022
https://issues.dlang.org/show_bug.cgi?id=23017

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@dkorpel created dlang/dmd pull request #13984 "Fix issue 23017 - C++ class may not derive from D class" fixing this issue:

- Fix issue 23017 - C++ class may not derive from D class

https://github.com/dlang/dmd/pull/13984

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

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13984 "Fix issue 23017 - C++ class may not derive from D class" was merged into master:

- 06d9c42d52ab05e8eaecbd18468acce352b255c3 by Dennis Korpel:
  Fix issue 23017 - C++ class may not derive from D class

https://github.com/dlang/dmd/pull/13984

--