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

Mark Mitchell mark at codesourcery.com
Thu Oct 24 00:15:34 UTC 2002



--On Wednesday, October 23, 2002 05:06:54 PM -0700 Kerch Holt 
<kerch at cup.hp.com> wrote:

> Mark Mitchell wrote:
>> Consider this example:
>>
>>   typedef void T ();
>>
>>   struct S {
>>   };
>>
>>   void f (T*, T (S::*)) {}
>>
>>
>> I think the answer ought to be that these two types are *not* the
>> same, and G++ agrees with me. :-)
>>
>> If your compiler produces this output:
>>
>>   _Z1fPFvvEM1SFvvE
>
> This is HP's encoding:
> _Z1fPFvvEM1SS_

That's the other reasonable choice -- but Intel and G++ do it the other
way, so I think you're out of luck.

Some day, I hope we'll really have nailed down every corner case...

-- 
Mark Mitchell                mark at codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the cxx-abi-dev mailing list