[cxx-abi-dev] Name mangling question
nasgaard at ca.ibm.com
nasgaard at ca.ibm.com
Wed Nov 27 14:42:37 UTC 2002
I agree that the mangling you gave is correct for your example, but that is
not the example I gave and it is not the mangling g++ gives for my example.
In my example _Impl is nested inside locale. The mangling g++ gives is
_ZN6locale5_Impl3fooERS0_.
Demangled this is locale::_Impl::foo(locale::_Impl&)
Howard W. Nasgaard
C++ Compiler Development
e-mail: nasgaard at ca.ibm.com
C2/KD2/8200/MKM
905-413-3683
Tie: 969-3683
loewis at informatik.h
u-berlin.de (Martin To: Howard Nasgaard/Toronto/IBM at IBMCA
v. Löwis) cc: cxx-abi-dev at codesourcery.com
Subject: Re: [cxx-abi-dev] Name mangling question
11/27/2002 09:12 AM
nasgaard at ca.ibm.com writes:
> The mangled name you specified would be correct if there was a struct
_Impl
> at namespace scope. For the function in question we need to mangle the
> type of the parameter which, in my example, is locale::_Impl, a nested
> class.
So you agree that the mangling that g++ generates is correct? If not,
what other mangling would you expect?
Regards,
Martin
More information about the cxx-abi-dev
mailing list