parse.y (attach_init_test_initialization_flags): Check for error_mark_node.

2002-10-08  Andrew Haley  <aph@redhat.com>

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

From-SVN: r57928
This commit is contained in:
Andrew Haley 2002-10-08 15:02:30 +00:00 committed by Andrew Haley
parent 5404cddbc8
commit ce5bb29309
2 changed files with 10 additions and 2 deletions

View 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.

View 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;
}