From 97d541d588e6185728e9e13f874ddb16b115e9f1 Mon Sep 17 00:00:00 2001 From: sayle Date: Fri, 27 May 2005 23:17:21 +0000 Subject: * cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code. * parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead of CONVERT_EXPR. (cp_parser_unary_expression): Likewise. * typeck.c (build_unary_op): Likewise. * call.c (add_builtin_candidate, build_new_op): Likewise. * error.c (dump_expr): Likewise. * pt.c (tsubst_copy, tsubst_copy_and_build): Likewise. * decl.c (ambi_op_p, grok_op_properties): Likewise. * dump.c (dump_op): Likewise. * lex.c (init_operators): Likewise. * operators.def ("+"): Likewise. * cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a conversion, if the result and argument types differ. * tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much like a NOP_EXPR when !processing_template_decl. * cxx-pretty-print.c (pp_cxx_cast_expression): Prototype. (pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100285 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/operators.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/operators.def') diff --git a/gcc/cp/operators.def b/gcc/cp/operators.def index 16e603d31bf..19c1b6f9c70 100644 --- a/gcc/cp/operators.def +++ b/gcc/cp/operators.def @@ -84,7 +84,7 @@ DEF_SIMPLE_OPERATOR ("delete", DELETE_EXPR, "dl", -1) DEF_SIMPLE_OPERATOR ("delete []", VEC_DELETE_EXPR, "da", -1) /* Unary operators. */ -DEF_SIMPLE_OPERATOR ("+", CONVERT_EXPR, "ps", 1) +DEF_SIMPLE_OPERATOR ("+", UNARY_PLUS_EXPR, "ps", 1) DEF_SIMPLE_OPERATOR ("-", NEGATE_EXPR, "ng", 1) DEF_SIMPLE_OPERATOR ("&", ADDR_EXPR, "ad", 1) DEF_SIMPLE_OPERATOR ("*", INDIRECT_REF, "de", 1) -- cgit v1.2.1