diff options
| author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-02 18:03:20 +0000 |
|---|---|---|
| committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-02 18:03:20 +0000 |
| commit | fb213c8571691511c41345b832e6f6e1911c08cf (patch) | |
| tree | 7ccd1aca680b7efb33ec9badfa5bf24703bbed11 /gcc/c-typeck.c | |
| parent | 516a329b4cd4a6fa7dffe83ba1c2c3cf7d924b6f (diff) | |
| download | ppe42-gcc-fb213c8571691511c41345b832e6f6e1911c08cf.tar.gz ppe42-gcc-fb213c8571691511c41345b832e6f6e1911c08cf.zip | |
PR c/19435
* c-typeck.c (really_start_incremental_init): Reset
constructor_max_index for arrays of incomplete type.
testsuite:
* gcc.dg/c99-init-4.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94595 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
| -rw-r--r-- | gcc/c-typeck.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 54f9714f514..f04ba73ad75 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -4674,7 +4674,10 @@ really_start_incremental_init (tree type) TYPE_MIN_VALUE (TYPE_DOMAIN (constructor_type))); } else - constructor_index = bitsize_zero_node; + { + constructor_index = bitsize_zero_node; + constructor_max_index = NULL_TREE; + } constructor_unfilled_index = constructor_index; } |

