PR c++/9781, c++/10583, c++/11862
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Mon, 20 Oct 2003 12:42:37 +0000 (12:42 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Mon, 20 Oct 2003 12:42:37 +0000 (12:42 +0000)
commit11325dcdbdad0d7744dd92d65174777555e8531e
tree3889a0af25f3e42e85de9eb3f6a37620a052feda
parentadccacc41df4afbdaaa6a5b45364a51708e56088
PR c++/9781, c++/10583, c++/11862

PR c++/9781, c++/10583, c++/11862
* decl.c (cp_finish_decl): Exit immediately if decl is an
error_mark_node.
* pt.c (push_template_decl_real): Return error_mark_node for
invalid template declaration of variable.

* g++.dg/parse/crash13.C: New test.

From-SVN: r72701
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash13.C [new file with mode: 0644]