diff options
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r-- | gcc/cp/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c index e448218..960f46b 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2872,9 +2872,9 @@ build_vec_init (decl, base, maxindex, init, from_array) if (from_array || (TYPE_NEEDS_CONSTRUCTING (type) - && ! (TREE_CODE (maxindex) == INTEGER_CST + && ! (host_integerp (maxindex, 0) && (num_initialized_elts - == (HOST_WIDE_INT) TREE_INT_CST_LOW (maxindex) + 1)))) + == tree_low_cst (maxindex, 0) + 1)))) { /* If the ITERATOR is equal to -1, then we don't have to loop; we've already initialized all the elements. */ |