diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-25 19:26:36 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-08-25 19:26:36 -0400 |
commit | e5cfb88fc9232c09e0578ee2d72e9b74dc2b6ba4 (patch) | |
tree | 3ec99a9090737d57a7ffaee3995f5bddf4b7b432 | |
parent | 5502823b564e8277c2c4b33e97deb993d0bca9f5 (diff) | |
download | gcc-e5cfb88fc9232c09e0578ee2d72e9b74dc2b6ba4.zip gcc-e5cfb88fc9232c09e0578ee2d72e9b74dc2b6ba4.tar.gz gcc-e5cfb88fc9232c09e0578ee2d72e9b74dc2b6ba4.tar.bz2 |
(set_init_label): Don't die if an entire brace-pair level is
superfluous in the containing level.
From-SVN: r10282
-rw-r--r-- | gcc/c-typeck.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 527b6eb..544a365 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)) { |