Re: [cxx-abi-dev] Function call mangling again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] Function call mangling again




 Mar 23, 2009, at 3:09 PM, Jason Merrill <jason@xxxxxxxxxx> 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