On Sep 20 2018, Jakub Jelinek <ja...@redhat.com> wrote: > --- gcc/cp/class.c.jj 2018-09-20 09:56:59.229751895 +0200 > +++ gcc/cp/class.c 2018-09-20 10:12:17.447370890 +0200 > @@ -9266,7 +9266,6 @@ build_vtbl_initializer (tree binfo, > tree vcall_index; > tree fn, fn_original; > tree init = NULL_TREE; > - tree idx = size_int (jx++); > > fn = BV_FN (v); > fn_original = fn; > @@ -9370,7 +9369,7 @@ build_vtbl_initializer (tree binfo, > int i; > if (init == size_zero_node) > for (i = 0; i < TARGET_VTABLE_USES_DESCRIPTORS; ++i) > - CONSTRUCTOR_APPEND_ELT (*inits, idx, init); > + CONSTRUCTOR_APPEND_ELT (*inits, size_int (jx++), init); > else > for (i = 0; i < TARGET_VTABLE_USES_DESCRIPTORS; ++i) > { > @@ -9378,11 +9377,11 @@ build_vtbl_initializer (tree binfo, > fn, build_int_cst (NULL_TREE, i)); > TREE_CONSTANT (fdesc) = 1; > > - CONSTRUCTOR_APPEND_ELT (*inits, idx, fdesc); > + CONSTRUCTOR_APPEND_ELT (*inits, size_int (jx++), fdesc); > } > } > else > - CONSTRUCTOR_APPEND_ELT (*inits, idx, init); > + CONSTRUCTOR_APPEND_ELT (*inits, size_int (jx++), init); > } > }
This still doesn't fix the tests. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."