[cxx-abi-dev] Pointer to member function mangling

Christophe de Dinechin ddd at cup.hp.com
Sun Feb 24 06:49:55 UTC 2002


Although I'm no longer a member of the C++ team, I still read the list. 
But I was on vacation this week. I guess Randy is now the official 
"owner".

As Randy replied, aCC emits M1AKFvvE.


Regards,
Christophe

On Tuesday, February 19, 2002, at 09:18 AM, Jason Merrill wrote:

>>>>>> "Jason" == Jason Merrill <jason at redhat.com> writes:
>
>> My question has to do with encoding a cv-qualified pointer to member
>> function type, i.e.
>
>>   void (A::*)() const
>
>> What do other compilers produce?  What do other demanglers expect?
>
>> g++ currently emits
>
>>   MK1AFvvE
>
>> or, member of class "const A" of type "function of (void) returning 
>> void".
>> I don't see how this can be deduced from the above text.
>
>> IMO more consistent with the language semantics would be
>
>>   M1AKFvvE
>
>> or, member of A of type "function of (void) const returning void".  
>> The C++
>> standard states unambiguously that the cv-quals are part of the 
>> function
>> type.
>
> As an additional data point, the Intel ia64 compiler (Version 5.0.1, 
> Build
> 20010705) produces
>
>     M1AFvvE
>
> or, member of A of type "function of (void) returning void".  Which I 
> think
> we can all agree is wrong; the const doesn't appear anywhere.
>
> Does anyone have access to an HP compiler for comparison?  Is anyone at 
> HP
> still reading this list?
>
> Jason
>




More information about the cxx-abi-dev mailing list