OSDN Git Service

(process_init_element): Do not call push_init_level
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 1994 17:56:03 +0000 (17:56 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jul 1994 17:56:03 +0000 (17:56 +0000)
if the value is error_mark_node.

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

gcc/c-typeck.c

index d5283c6..e99d193 100644 (file)
@@ -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))