diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6d4031c425b..1c9e5a661f8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-10-01 Steve Ellcey + + * cp/class.c (build_vtbl_initializer): Change build_c_cast + to build1. + 2002-10-01 Mark Mitchell * decl.c (cp_finish_decl): Correct check for dynamic diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 5d46eaa3c4e..3f074916a5a 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -7617,8 +7617,8 @@ build_vtbl_initializer (binfo, orig_binfo, t, rtti_binfo, non_fn_entries_p) for (i = 1; i < TARGET_VTABLE_DATA_ENTRY_DISTANCE; ++i) add = tree_cons (NULL_TREE, - build_c_cast (vtable_entry_type, - size_zero_node), + build1 (NOP_EXPR, vtable_entry_type, + null_pointer_node), add); *prev = add; }