[cxx-abi] [cxx-abi-dev] Mangling unary plus
Nelson, Clark
clark.nelson at intel.com
Tue Oct 8 20:28:21 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?
Intel's compiler uses "pl".
> If there are no objections, I will update the document to
> indicate that
> "ps" is the approved spelling in a few days.
Hmmm. I guess we need a tie-breaker.
--
Clark Nelson
Intel Corporation
clark.nelson at intel.com
More information about the cxx-abi-dev
mailing list