typeck.c (build_x_unary_op): Take note of the fact that PREINCREMENT_EXPR and POSTINC...
authorMark Mitchell <mark@codesourcery.com>
Wed, 9 Jul 2003 23:39:14 +0000 (23:39 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 9 Jul 2003 23:39:14 +0000 (23:39 +0000)
* typeck.c (build_x_unary_op): Take note of the fact that
PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary operations on
trees.

From-SVN: r69161

gcc/cp/ChangeLog
gcc/cp/typeck.c

index 4544e1b4f11e62203ce8e11c6363e7941a957362..7e7099850a0f975e6f20c07456d2a38b2405020b 100644 (file)
@@ -1,5 +1,9 @@
 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
 
+       * typeck.c (build_x_unary_op): Take note of the fact that
+       PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary operations on
+       trees.
+
        * parser.c (cp_parser_primary_expression): Preserve the form of
        qualified expressions in templates, even if they are not
        dependent.
index 6d499d6c35f6c1a238eb94cb0843517764920043..189bda2dd35c256723d73dc122ad38497ab9eee2 100644 (file)
@@ -3756,7 +3756,7 @@ build_x_unary_op (enum tree_code code, tree xarg)
     }
 
   if (processing_template_decl && exp != error_mark_node)
-    return build_min (code, TREE_TYPE (exp), orig_expr);
+    return build_min (code, TREE_TYPE (exp), orig_expr, NULL_TREE);
   return exp;
 }