[cxx-abi-dev] Mangling of variadic arguments to alias template

Jason Merrill jason at redhat.com
Tue Dec 13 16:52:57 UTC 2011


On 12/13/2011 11:03 AM, John Spicer wrote:
> I think the answer should just be "you can't do that". Aliases have to
> be expanded immediately, and if you can't do so it should be an error.
>
> For this example, we currently say:
>
> "t1.c", line 8: error: too few arguments for alias template "A"
> void foo(A<Ts...>);
> ^

Hmm.  Clang does the same thing, as did we initially, but I assumed that 
was a case of parallel evolution of bugs.  I guess I'll raise it on core.

Jason



More information about the cxx-abi-dev mailing list