Thread overview
[Issue 23135] Covariance rules for C++ member functions mismatch D
May 24, 2022
kinke
May 24, 2022
Tim
May 25, 2022
Iain Buclaw
May 25, 2022
Dlang Bot
May 27, 2022
Dlang Bot
May 24, 2022
https://issues.dlang.org/show_bug.cgi?id=23135

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke <kinke@gmx.net> ---
After giving it a little thought, I agree. The alternative would probably mean special-casing in dtoh (.h generation) and C++ mangling, and that doesn't seem too worthwhile to me.

--
May 24, 2022
https://issues.dlang.org/show_bug.cgi?id=23135

Tim <tim.dlang@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tim.dlang@t-online.de
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=22351

--- Comment #2 from Tim <tim.dlang@t-online.de> ---
This is similar to issue 22351.

--
May 25, 2022
https://issues.dlang.org/show_bug.cgi?id=23135

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> ---
(In reply to Tim from comment #2)
> This is similar to issue 22351.

Excellent, looks like fixing this issue fixes the other as well.

--
May 25, 2022
https://issues.dlang.org/show_bug.cgi?id=23135

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #14169 "fix Issue 22351 - extern(C++) function contravariant in D, but not C++" fixing this issue:

- fix Issue 23135 - Covariance rules for C++ member functions mismatch D

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

--
May 27, 2022
https://issues.dlang.org/show_bug.cgi?id=23135

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

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

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14169 "fix Issue 22351 - extern(C++) function contravariant in D, but not C++" was merged into master:

- 121fd73a1f8ebd6d563430d214507c436b885c32 by Iain Buclaw:
  fix Issue 23135 - Covariance rules for C++ member functions mismatch D

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

--