https://issues.dlang.org/show_bug.cgi?id=17310
Issue ID: 17310 Summary: [SPEC] Ambiguous mangling for 'Y', Objective-C function or variadic arguments? Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: dlang.org Assignee: nob...@puremagic.com Reporter: r.sagita...@gmx.de extern(Objective-C) void ofun(); void foo(typeof(ofun)* fn); void goo(...); pragma(msg, typeof(foo).mangleof); pragma(msg, typeof(goo).mangleof); produces: FPYZvZv FYv 'Y' at the position of a function argument can both be an Objective-C function type or the end of the argument list of variadic function. 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. Objective-C functions should use a different character (or a combination of characters, e.g. "No") instead. --