+2005-09-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/23947
+ * rtti.c (get_pseudo_ti_init): Recompute ti pointer after
+ get_tinfo_ptr calls.
+
2005-09-16 Mark Mitchell <mark@codesourcery.com>
PR c++/23914
tree base_binfo = BINFO_BASE_BINFO (TYPE_BINFO (type), 0);
tree tinfo = get_tinfo_ptr (BINFO_TYPE (base_binfo));
tree base_inits = tree_cons (NULL_TREE, tinfo, NULL_TREE);
-
+
+ /* get_tinfo_ptr might have reallocated the tinfo_descs vector. */
+ ti = VEC_index (tinfo_s, tinfo_descs, tk_index);
return class_initializer (ti, type, base_inits);
}
base_inits = tree_cons (NULL_TREE,
build_int_cst (NULL_TREE, hint),
base_inits);
+
+ /* get_tinfo_ptr might have reallocated the tinfo_descs vector. */
+ ti = VEC_index (tinfo_s, tinfo_descs, tk_index);
return class_initializer (ti, type, base_inits);
}
}
2005-09-20 Jakub Jelinek <jakub@redhat.com>
+ PR c++/23947
+ * g++.dg/rtti/crash3.C: New test.
+
PR tree-optimization/23818
* gcc.dg/pr23818.c: New test.