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.
Jason