diff options
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index fde2314..c37423c 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -3662,7 +3662,7 @@ build_vec_init (tree base, tree maxindex, tree init, if (from_array || ((type_build_ctor_call (type) || init || explicit_value_init_p) - && ! (host_integerp (maxindex, 0) + && ! (tree_fits_shwi_p (maxindex) && (num_initialized_elts == tree_low_cst (maxindex, 0) + 1)))) { |