[Issue 17310] [SPEC] Ambiguous mangling for 'Y', Objective-C function or variadic arguments?

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 15 02:18:28 PDT 2017


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

--- Comment #5 from Rainer Schuetze <r.sagitario at gmx.de> ---
Try these:

module test;
struct S {}

extern(Objective-C) void ofun()
{
    void foo(S s, ...);
    void goo(typeof(&foo) fn);
    pragma(msg, foo.mangleof); // _D4test4ofunYZ3fooMFS4test1SYv
    pragma(msg, goo.mangleof); // _D4test4ofunYZ3gooMFDFS4test1SYvZv
}

The 'Y' after 4test1S looks ambiguous to me.

--


More information about the Digitalmars-d-bugs mailing list