PR c++/85264 - ICE with excess template-parameter-list.
commit9563ab7cbceb5300067325f08b34b2bf69460cec
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2018 19:50:03 +0000 (9 19:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2018 19:50:03 +0000 (9 19:50 +0000)
tree53b9d4e2e4cafdd85f18ee47c7fdbd72e4550e77
parent265f13ff5713a57260a2c3c28600c172ff74f80c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259253 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/variadic176.C [new file with mode: 0644]