lists, that's OK. */
if (parser->num_template_parameter_lists == num_templates)
return true;
- /* If there are more, but only one more, then we are referring to a
- member template. That's OK too. */
+ /* If there are more, but only one more, and the name ends in an identifier,
+ then we are declaring a primary template. That's OK too. */
if (!template_id_p
&& parser->num_template_parameter_lists == num_templates + 1)
return true;