From 4b51265982bb3817d60989ebdf4cbd2f8809902d Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 10 Apr 2018 10:23:49 -0400 Subject: [PATCH] * parser.c (cp_parser_check_template_parameters): Improve comment. From-SVN: r259276 --- gcc/cp/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2