diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index e40e61f0aae..01d4046e0bf 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -1652,7 +1652,7 @@ add_builtin_candidate (struct z_candidate **candidates, enum tree_code code, T operator+(T); T operator-(T); */ - case CONVERT_EXPR: /* unary + */ + case UNARY_PLUS_EXPR: /* unary + */ if (TREE_CODE (type1) == POINTER_TYPE) break; case NEGATE_EXPR: @@ -3848,7 +3848,7 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3, case TRUTH_ORIF_EXPR: return cp_build_binary_op (code, arg1, arg2); - case CONVERT_EXPR: + case UNARY_PLUS_EXPR: case NEGATE_EXPR: case BIT_NOT_EXPR: case TRUTH_NOT_EXPR: @@ -4035,7 +4035,7 @@ build_op_delete_call (enum tree_code code, tree addr, tree size, if (placement) return NULL_TREE; - error ("no suitable %<operator %s> for %qT", + error ("no suitable %<operator %s%> for %qT", operator_name_info[(int)code].name, type); return error_mark_node; } |