Mangling unary plus
Mark Mitchell
mark at codesourcery.com
Tue Oct 8 20:11:59 UTC 2002
For this example:
struct A { void operator+(); };
what is the mangling of A::operator+?
The current ABI spec says that "unary and binary operators using the
same symbol have different encodings" -- but does not actually specify
a mangling for unary plus, even though it does specify manglings for
unary minus, unary *, and unary &.
G++ uses "ps" for unary plus.
Intel, HP -- what do your compilers do?
If there are no objections, I will update the document to indicate that
"ps" is the approved spelling in a few days.
--
Mark Mitchell mark at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the cxx-abi-dev
mailing list