[Issue 20208] extern (C++) copy constructor bad mangling for dmd
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 20 20:40:30 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=20208
Paul Backus <snarwin+bugzilla at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |C++
CC| |snarwin+bugzilla at gmail.com
--- Comment #4 from Paul Backus <snarwin+bugzilla at gmail.com> ---
Someone just ran into this in the community Discord. I was able to reproduce
using both DMD 2.104.0 and LDC 1.33.0 as the D compiler, with the following
example program:
--- test.d
extern(C++)
struct Test
{
this(const ref Test other) {}
}
--- main.cpp
struct Test
{
Test() = default;
Test(const Test &other);
};
int main()
{
Test a;
Test b = a;
return 0;
}
---
--
More information about the Digitalmars-d-bugs
mailing list