From e5cfb88fc9232c09e0578ee2d72e9b74dc2b6ba4 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 25 Aug 1995 19:26:36 -0400 Subject: [PATCH] (set_init_label): Don't die if an entire brace-pair level is superfluous in the containing level. From-SVN: r10282 --- gcc/c-typeck.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.30.2