* parser.c (cp_parser_check_template_parameters): Improve comment.
authorJason Merrill <jason@gcc.gnu.org>
Tue, 10 Apr 2018 14:23:49 +0000 (10:23 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 10 Apr 2018 14:23:49 +0000 (10:23 -0400)
From-SVN: r259276

gcc/cp/parser.c

index d4b62c7..849a75a 100644 (file)
@@ -26452,8 +26452,8 @@ cp_parser_check_template_parameters (cp_parser* parser,
      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;