(set_init_label): Don't die if an entire brace-pair level is
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 25 Aug 1995 23:26:36 +0000 (19:26 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 25 Aug 1995 23:26:36 +0000 (19:26 -0400)
superfluous in the containing level.

From-SVN: r10282

gcc/c-typeck.c

index 527b6ebb9165184205dca6c0b9d7f2e6afa60de1..544a36522237902330c45d285bfcc4978c93dda3 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))
     {