projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5502823
)
(set_init_label): Don't die if an entire brace-pair level is
author
Richard Kenner
<kenner@gcc.gnu.org>
Fri, 25 Aug 1995 23:26:36 +0000
(19:26 -0400)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 527b6ebb9165184205dca6c0b9d7f2e6afa60de1..544a36522237902330c45d285bfcc4978c93dda3 100644
(file)
--- 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))
{