gcc:
        * c/c-typeck.c (set_init_index): When folding, check for index overflow.
        * c-family/c-common.c (complete_array_type): Delay folding first index
        like other indices.  When folding, check for index overflow.
gcc/testsuite:
        * gcc.dg/large-size-array-6.c: New test.