From: Jason Merrill Date: Tue, 10 Apr 2018 14:23:49 +0000 (-0400) Subject: * parser.c (cp_parser_check_template_parameters): Improve comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b51265982bb3817d60989ebdf4cbd2f8809902d;p=gcc.git * parser.c (cp_parser_check_template_parameters): Improve comment. From-SVN: r259276 --- diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index d4b62c75c44..849a75a1a51 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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;