diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 76d8eab..8a89aad 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -6341,10 +6341,8 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum, /* We are going to bind a reference directly to a base-class subobject of EXPR. */ /* Build an expression for `*((base*) &expr)'. */ - expr = cp_build_addr_expr (expr, complain); - expr = convert_to_base (expr, build_pointer_type (totype), + expr = convert_to_base (expr, totype, !c_cast_p, /*nonnull=*/true, complain); - expr = cp_build_indirect_ref (expr, RO_IMPLICIT_CONVERSION, complain); return expr; } |