diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 0e501d9045a..310e7ebe728 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -741,7 +741,7 @@ do_build_copy_assign (tree fndecl) init = move (init); if (DECL_NAME (field)) - init = cp_build_modify_expr (comp, NOP_EXPR, init, + init = cp_build_modify_expr (input_location, comp, NOP_EXPR, init, tf_warning_or_error); else init = build2 (MODIFY_EXPR, TREE_TYPE (comp), comp, init); @@ -1023,7 +1023,7 @@ assignable_expr (tree to, tree from) ++cp_unevaluated_operand; to = build_stub_object (to); from = build_stub_object (from); - tree r = cp_build_modify_expr (to, NOP_EXPR, from, tf_none); + tree r = cp_build_modify_expr (input_location, to, NOP_EXPR, from, tf_none); --cp_unevaluated_operand; return r; } |