[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 01:54:04 PDT 2017


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

--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Rainer Schuetze from comment #0)
> 
> Granted, the function type might never appear without a pointer prefix in
> the argument list, but this special case makes it harder for a demangler.
> 

I think it should be assumed that the demangler rejects this anyway.

$ ./cxxfilt -s dlang
_D8demangle3fooFYZvZv
_D8demangle3fooFYZvZv   <- Not demangled.


As a litmus test, I also tried.

_D8demangle3gooYZv  <- extern(Objective-C) goo()
demangle.goo()
_D8demangle3gooYYv  <- extern(Objective-C) goo(...)
demangle.goo(...)

But the compiler will never emit functions like the above two anyway...

--


More information about the Digitalmars-d-bugs mailing list