diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e9be4735564..085cb3375a3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +1998-10-31 Jason Merrill + + * rtti.c (build_dynamic_cast_1): Fix cut-and-paste error. + 1998-10-30 Mark Mitchell * decl2.c (delete_sanity): Pass integer_zero_node, not diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index b9c94980218..5b451bf55ed 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -566,7 +566,7 @@ build_dynamic_cast_1 (type, expr) && TREE_CODE (TREE_TYPE (op)) == RECORD_TYPE) { cp_warning ("dynamic_cast of `%#D' to `%#T' can never succeed", - expr, type); + op, type); retval = build_int_2 (0, 0); TREE_TYPE (retval) = type; return retval;