PR c++/85264 - ICE with excess template-parameter-list.
authorJason Merrill <jason@redhat.com>
Mon, 9 Apr 2018 19:50:03 +0000 (15:50 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 9 Apr 2018 19:50:03 +0000 (15:50 -0400)
commit68a8efea502cd7c086f26a4b4c93fd8ea5dd4fdc
tree53b9d4e2e4cafdd85f18ee47c7fdbd72e4550e77
parent6e4f1148ce233f2533d56ab20dc002dc1e9a83d7
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.

From-SVN: r259253
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/variadic176.C [new file with mode: 0644]