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



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 &lt;type&gt; &lt;unqualified-name&gt; &lt;template-args&gt;   # dependent template-id
                 ::= sZ &lt;template-param&gt;                            # size of a parameter pack
  	       ::= &lt;expr-primary&gt;
+ 	       ::= &lt;unqualified-name&gt; &lt;template-args&gt;             # dependent template-id
+ 	       ::= &lt;unqualified-name&gt;                             # dependent name
  
    &lt;expr-primary&gt; ::= L &lt;type&gt; &lt;<i>value</i> number&gt; E                   # integer literal
                   ::= L &lt;type &lt;<i>value</i> float&gt; E                     # floating literal