re PR c++/47198 ([C++0x] ICE: tree check: expected var_decl or function_decl, have...
authorJason Merrill <jason@redhat.com>
Thu, 10 Mar 2011 15:21:00 +0000 (10:21 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 10 Mar 2011 15:21:00 +0000 (10:21 -0500)
commit4999d9b0135878f24eae78f33142b4929274dd54
treebe33bedd89aa2d35e4d9b0c5180f1296a13dc3b6
parent392426866e8caa70e52ad562423c13191a5667a3
re PR c++/47198 ([C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4654 on invalid code)

PR c++/47198
* parser.c (cp_parser_single_declaration): Just return if
cp_parser_parse_and_diagnose_invalid_type_name complained.

From-SVN: r170847
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/syntax-err1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/error36.C
gcc/testsuite/g++.old-deja/g++.pt/ctor2.C
gcc/testsuite/g++.old-deja/g++.pt/typename3.C
gcc/testsuite/g++.old-deja/g++.pt/typename4.C
gcc/testsuite/g++.old-deja/g++.pt/typename6.C