Re: [cxx-abi-dev] mangling template-id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cxx-abi-dev] mangling template-id
- To: "cxx-abi-dev@xxxxxxxxxxxxxxxx" <cxx-abi-dev@xxxxxxxxxxxxxxxx>
- Subject: Re: [cxx-abi-dev] mangling template-id
- From: Jason Merrill <jason@xxxxxxxxxx>
- Date: Thu, 17 Dec 2009 17:58:56 -0500
On 11/11/2009 12:55 PM, Jason Merrill wrote:
Currently there's no way in the ABI to mangle something like
decltype(fn<args>()) because mangling is only specified for a qualified
template-id.
Handling this just as unqualified-name template-args seems to work fine;
any reason not to just add that to expression? We also need to support a
plain identifier for overloaded functions.
Here's a patch.
*** abi.html.~1~ 2009-09-23 16:05:02.162720132 -0400
--- abi.html 2009-12-17 17:57:39.112243479 -0500
*************** from other arguments.
*** 4402,4407 ****
--- 4403,4410 ----
::= sr <type> <unqualified-name> <template-args> # dependent template-id
::= sZ <template-param> # size of a parameter pack
::= <expr-primary>
+ ::= <unqualified-name> <template-args> # dependent template-id
+ ::= <unqualified-name> # dependent name
<expr-primary> ::= L <type> <<i>value</i> number> E # integer literal
::= L <type <<i>value</i> float> E # floating literal