From: Richard Kenner Date: Fri, 25 Aug 1995 23:26:36 +0000 (-0400) Subject: (set_init_label): Don't die if an entire brace-pair level is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5cfb88fc9232c09e0578ee2d72e9b74dc2b6ba4;p=gcc.git (set_init_label): Don't die if an entire brace-pair level is superfluous in the containing level. From-SVN: r10282 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 527b6ebb916..544a3652223 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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)) {