[Bug c++/85264] [7/8 Regression] ICE with extraneous template parameter list
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 9 19:50:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85264
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Apr 9 19:50:03 2018
New Revision: 259253
URL: https://gcc.gnu.org/viewcvs?rev=259253&root=gcc&view=rev
Log:
PR c++/85264 - ICE with excess template-parameter-list.
* parser.c (cp_parser_check_template_parameters): Add template_id_p
parameter. Don't allow an extra template header if true.
(cp_parser_class_head): Pass template_id_p.
(cp_parser_elaborated_type_specifier): Likewise.
(cp_parser_alias_declaration): Likewise.
(cp_parser_check_declarator_template_parameters): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic176.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
More information about the Gcc-bugs
mailing list