[cxx-abi-dev] Function call mangling again

Doug Gregor doug.gregor at gmail.com
Thu Mar 26 01:18:53 UTC 2009


  Mar 23, 2009, at 3:09 PM, Jason Merrill <jason at redhat.com> wrote:

> While looking at some late return type manglings, I noticed another  
> issue with function calls: now we know how to mangle the arguments,  
> but we still need to specify how we mangle what's being called.  For  
> an expression that contains a call to a template function "f", g++  
> will currently emit L_Z1fE, trying to use the mangled name of the  
> template. I think just using source-name for a dependent name, like  
> "1f", would be more appropriate, though I haven't looked to see if  
> that creates ambiguities yet.

Mangling just the source name seems reasonable for a dependent name.  
Would we then mangle (f) as a parentheses expression whose  
subexpression is the source name?

   - Doug



More information about the cxx-abi-dev mailing list