OSDN Git Service

(set_init_label): Don't die if an entire brace-pair level is
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 1995 23:26:36 +0000 (23:26 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Aug 1995 23:26:36 +0000 (23:26 +0000)
superfluous in the containing level.

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

gcc/c-typeck.c

index 527b6eb..544a365 100644 (file)
@@ -5737,6 +5737,11 @@ set_init_label (fieldname)
   tree tail;
   int passed = 0;
 
+  /* Don't die if an entire brace-pair level is superfluous
+     in the containing level.  */
+  if (constructor_type == 0)
+    return;
+
   for (tail = TYPE_FIELDS (constructor_type); tail;
        tail = TREE_CHAIN (tail))
     {