parse.y (attach_init_test_initialization_flags): Check for error_mark_node.
authorAndrew Haley <aph@redhat.com>
Tue, 8 Oct 2002 15:02:30 +0000 (15:02 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Tue, 8 Oct 2002 15:02:30 +0000 (15:02 +0000)
2002-10-08  Andrew Haley  <aph@redhat.com>

* parse.y (attach_init_test_initialization_flags): Check for
error_mark_node.

From-SVN: r57928

gcc/java/ChangeLog
gcc/java/parse.y

index 1ef902ca78fba35c304f0c3f4f589a01fc63a4fa..f67cea3480083a680d41c0c48e159274aed27415 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-08  Andrew Haley  <aph@redhat.com>
+
+       * parse.y (attach_init_test_initialization_flags): Check for
+       error_mark_node.
+
 2002-10-07  Anthony Green  <green@redhat.com> 
 
         * parse.y (merge_string_cste): Fix bug in string concatenation. 
index bb7155bafb6d791340f3ca433767aea81d9b6f33..ff4ef2c0e195cba4fabaa63271492c9335801165 100644 (file)
@@ -16221,8 +16221,11 @@ attach_init_test_initialization_flags (entry, ptr)
   tree block = (tree)ptr;
   struct treetreehash_entry *ite = (struct treetreehash_entry *) *entry;
 
-  TREE_CHAIN (ite->value) = BLOCK_EXPR_DECLS (block);
-  BLOCK_EXPR_DECLS (block) = ite->value;
+  if (block != error_mark_node)
+    {
+      TREE_CHAIN (ite->value) = BLOCK_EXPR_DECLS (block);
+      BLOCK_EXPR_DECLS (block) = ite->value;
+    }
   return true;
 }