* decl.c (start_decl): Exit if push_template_decl returns
authorlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 17:05:47 +0000 (17:05 +0000)
committerlerdsuwa <lerdsuwa@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 17:05:47 +0000 (17:05 +0000)
error_mark_node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72760 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 076f539..b702409 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-22  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
+
+       * decl.c (start_decl): Exit if push_template_decl returns
+       error_mark_node.
+
 2003-10-20  Kazu Hirata  <kazu@cs.umass.edu>
 
        * ChangeLog: Fix typos.
index 32fe398..7b27feb 100644 (file)
@@ -3788,6 +3788,8 @@ start_decl (tree declarator,
 
   if (processing_template_decl)
     tem = push_template_decl (tem);
+  if (tem == error_mark_node)
+    return error_mark_node;
 
 #if ! defined (ASM_OUTPUT_BSS) && ! defined (ASM_OUTPUT_ALIGNED_BSS)
   /* Tell the back-end to use or not use .common as appropriate.  If we say