On 10/24/2012 09:53 PM, Jason Merrill wrote:
On 10/24/2012 02:11 PM, Paolo Carlini wrote:
The problem is that the first time we go through the loop, when parm_idx
== 0 and TREE_PURPOSE is error_mark_node, the condition:

       if (template_parameter_pack_p (TREE_VALUE (parm))
       && !(arg && ARGUMENT_PACK_P (arg)))

near the beginning of the loop is true

The parm shouldn't be a parameter pack in that case; the ... is part of the default argument, not the parameter.
Yes, I see that. Then it seems to me that we have to catch the problem (much) earlier...

Thanks,
Paolo.

Reply via email to