Hi,

On 07/29/2014 06:56 PM, Jason Merrill wrote:
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. :)
Yeah, it is, but then we aren't really handling c++/57397, IMHO. I bet there is even a different bug report or a defect report for this second issue. I'll see what I can do, but I have no idea how difficult it will turn out to be...

Paolo.

Reply via email to