Thread overview
[Issue 21200] const(Class) should be C++ mangled as Class const *
Nov 28, 2021
Tim
Dec 17, 2022
Iain Buclaw
June 20, 2021
https://issues.dlang.org/show_bug.cgi?id=21200

archon.saratov@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |archon.saratov@gmail.com

--
June 20, 2021
https://issues.dlang.org/show_bug.cgi?id=21200

--- Comment #1 from archon.saratov@gmail.com ---
any news?

--
June 20, 2021
https://issues.dlang.org/show_bug.cgi?id=21200

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg

--- Comment #2 from moonlightsentinel@disroot.org ---
That would allow external code to silently break the type system as soon as references are involved:

==========================================
// D

extern(C++) class C {}

extern(C++) void foo(ref const C);

void main()
{
    static immutable C c = new C();
    foo(c);
}

==========================================
// C++

class C;

void foo(const C*& c)
{
    c = nullptr; // <= boom
}

==========================================

(Allthough class + ref should be rare outside of generic code)

--
November 28, 2021
https://issues.dlang.org/show_bug.cgi?id=21200

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=22550

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

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

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

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

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

--