On 07/29/2014 12:23 PM, Paolo Carlini wrote:
On 07/29/2014 06:01 PM, Jason Merrill wrote:
Why would we get here in the too few args case?  Won't we only hit
this code if we had enough args for the non-pack parms?
Yeah, that is exactly for the cases I was mentioning at the end of the
my first message, eg:

template<class T1, class... T2, class... T3>
void boo(T1, T2..., T3...)
{ }

int main()
{
   boo(1);
}

Ah, right. And as you mention, we ought to accept that; it seems a bit odd to change the code to give a different wrong error instead of the current wrong error. :)

Jason

Reply via email to