[cxx-abi-dev] Mangling follow-up

Mark Mitchell mark at codesourcery.com
Wed Oct 9 02:06:03 UTC 2002



--On Thursday, October 03, 2002 02:09:45 PM -0700 Mark Mitchell 
<mark at codesourcery.com> wrote:

>
> Actually, in this example:
>
>   template <template <typename> class Q>
>   void f (typename Q<int>::X) {}
>
>   template <typename Q>
>   struct S {
>     typedef int X;
>   };
>
>   template void f<S> (int);
>
> rather than adding this rule:
>
>   <template-prefix> ::= <template-template-param>
>
> we should add:
>
>   <template-prefix> ::= <template-param>
>
> The point is to avoid adding two substitutions for the same parameter;
> <template-prefix> adds a substitution and so does
> <template-template-param>.

Since there were no objectios, I checked in this patch.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diffs
Type: application/octet-stream
Size: 1432 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20021008/e3aa1daf/attachment.obj>


More information about the cxx-abi-dev mailing list