re PR c++/88180 (ICE in vec<tree_node*, va_gc, vl_embed>::quick_push(tree_node* const&))
authorJakub Jelinek <jakub@redhat.com>
Thu, 20 Dec 2018 17:34:19 +0000 (18:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 20 Dec 2018 17:34:19 +0000 (18:34 +0100)
commit2694cacbc0929f8f2e503bef1ddaf1a3ac5c81b0
treedaf216f8d3a19c33e9202e3b4b2981ed14bba501
parent50867d20f4356714df1392a35240db8712c878f4
re PR c++/88180 (ICE in vec<tree_node*, va_gc, vl_embed>::quick_push(tree_node* const&))

PR c++/88180
* parser.c (cp_parser_class_specifier_1): If
cp_parser_check_type_definition fails, skip default arguments, NSDMIs,
etc. like for erroneous template args.

* g++.dg/parse/pr88180.C: New test.
* g++.dg/pr85039-1.C: Don't expect diagnostics inside of the type
definition's NSDMIs.

From-SVN: r267306
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/pr88180.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pr85039-1.C