diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-05 19:14:07 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-05 19:14:07 -0400 |
commit | 8d75e50998068ad68b41954524301fd855b2b425 (patch) | |
tree | 6bc392b5a9c511304e98d945e97053e07844c331 /gcc | |
parent | c8465d869bccf7164170008eec521ae4bffe23b4 (diff) | |
download | gcc-8d75e50998068ad68b41954524301fd855b2b425.zip gcc-8d75e50998068ad68b41954524301fd855b2b425.tar.gz gcc-8d75e50998068ad68b41954524301fd855b2b425.tar.bz2 |
(process_init_element): Don't clear_momentary if constructor_stack is
not empty.
From-SVN: r9584
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-typeck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index a275c6b..4570040 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -6288,7 +6288,8 @@ process_init_element (value) /* If the (lexically) previous elments are not now saved, we can discard the storage for them. */ - if (constructor_incremental && constructor_pending_elts == 0 && value != 0) + if (constructor_incremental && constructor_pending_elts == 0 && value != 0 + && constructor_stack == 0) clear_momentary (); } |