[Issue 19161] New: Wrong mangle for C++ classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 12 08:56:15 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19161

          Issue ID: 19161
           Summary: Wrong mangle for C++ classes
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ilyayaroshenko at gmail.com

extern(C++)
{

class Foo
{

}

void foo(Foo);

pragma(msg, foo.mangleof);

}


mangled to:
void __cdecl foo(class Foo * __ptr64)

expected (because of common C++ & STL practice):
void __cdecl foo(class Foo & __ptr64)

--


More information about the Digitalmars-d-bugs mailing list