[Issue 20429] New: extern(C++) mangling of multiple const ref params

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 4 15:17:43 UTC 2019


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

          Issue ID: 20429
           Summary: extern(C++) mangling of multiple const ref params
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

extern(C++, blah):

struct S {}

void foo(ref const(S) s0, ref const(S) s1);
pragma(msg, foo.mangleof);
void bar(ref const(S) s0, const(S) s1);
pragma(msg, foo.mangleof);

The foo and bar are mangled the same, and in both s1 is not mangled as ref, but
s0  is.

--


More information about the Digitalmars-d-bugs mailing list