[cxx-abi-dev] Mangling of template conversion ops

Mark Mitchell mark at codesourcery.com
Fri Jun 14 17:19:58 UTC 2002



--On Friday, June 14, 2002 03:45:57 PM +0100 Jason Merrill 
<jason at redhat.com> wrote:

> We recently received a bug report, at
>
>   http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=65035
>
> for the mangling of C::operator int in this testcase.
>
>   struct C {
>       template <class T>
>       operator T ();
>   };
>
>   template <class T>
>   C::operator T () { return 0; }
>
>   template C::operator int ();
>
> g++ currently emits
>
>   _ZN1CcviIiEEv
>
> but he argues, and I agree, that it should be
>
>   _ZN1CcvT_IiEEv
>
> mangling the template arg appropriately.  What do other people think?

I agree.  I have verified that two different EDG implementations both
behave the way we think they should.

If nobody objects, would you either send me a patch for the ABI
document, or remind me to do it?

Thanks,

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




More information about the cxx-abi-dev mailing list