From ee7204ee5524237c31037d427422137a349cb253 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 26 Jul 1994 10:56:03 -0700 Subject: [PATCH] (process_init_element): Do not call push_init_level if the value is error_mark_node. From-SVN: r7796 --- gcc/c-typeck.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index d5283c6..e99d193 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -6020,6 +6020,7 @@ process_init_element (value) /* Otherwise, if we have come to a subaggregate, and we don't have an element of its type, push into it. */ else if (value != 0 && !constructor_no_implicit + && value != error_mark_node && TYPE_MAIN_VARIANT (TREE_TYPE (value)) != fieldtype && (fieldcode == RECORD_TYPE || fieldcode == ARRAY_TYPE || fieldcode == UNION_TYPE)) @@ -6083,6 +6084,7 @@ process_init_element (value) /* Otherwise, if we have come to a subaggregate, and we don't have an element of its type, push into it. */ else if (value != 0 && !constructor_no_implicit + && value != error_mark_node && TYPE_MAIN_VARIANT (TREE_TYPE (value)) != fieldtype && (fieldcode == RECORD_TYPE || fieldcode == ARRAY_TYPE || fieldcode == UNION_TYPE)) @@ -6126,6 +6128,7 @@ process_init_element (value) /* Otherwise, if we have come to a subaggregate, and we don't have an element of its type, push into it. */ else if (value != 0 && !constructor_no_implicit + && value != error_mark_node && TYPE_MAIN_VARIANT (TREE_TYPE (value)) != elttype && (eltcode == RECORD_TYPE || eltcode == ARRAY_TYPE || eltcode == UNION_TYPE)) -- 2.7.4