aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2018-04-10 10:23:49 -0400
committerJason Merrill <jason@gcc.gnu.org>2018-04-10 10:23:49 -0400
commit4b51265982bb3817d60989ebdf4cbd2f8809902d (patch)
tree6406102ae80e491994b1d33fbc2a8770a6f0e657 /gcc/cp/parser.c
parent24f80aa404d41a79214e6c67cc0076664eb110b9 (diff)
downloadgcc-4b51265982bb3817d60989ebdf4cbd2f8809902d.zip
gcc-4b51265982bb3817d60989ebdf4cbd2f8809902d.tar.gz
gcc-4b51265982bb3817d60989ebdf4cbd2f8809902d.tar.bz2
* parser.c (cp_parser_check_template_parameters): Improve comment.
From-SVN: r259276
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index d4b62c7..849a75a 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;