------- Comment #8 from manu at gcc dot gnu dot org 2009-04-10 12:48 ------- Subject: Bug 20118
Author: manu Date: Fri Apr 10 12:47:58 2009 New Revision: 145892 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145892 Log: 2009-04-10 Manuel López-Ibáñez <m...@gcc.gnu.org> PR c++/20118 cp/ * parser.c (cp_parser_check_template_parameters): Take a cp_declarator parameter. (cp_parser_elaborated_type_specifier): Update to cp_parser_check_template_parameters. (cp_parser_class_head): Likewise. (cp_parser_check_declarator_template_parameters): Likewise. (cp_parser_check_template_parameters): Handle first the non-error conditions. Give more accurate diagnostics if a declarator is given. testsuite/ * g++.dg/parse/pr20118.C: New. * g++.dg/template/spec16.C: Update. Added: trunk/gcc/testsuite/g++.dg/parse/pr20118.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/spec16.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20118