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

Kerch Holt kerch at cup.hp.com
Thu Oct 24 00:06:54 UTC 2002


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_

Which seems a little broken because the when the demangler is given this
string it mumbles about an unimplemented token.

Kerch






More information about the cxx-abi-dev mailing list