aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-07-09 23:39:14 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-07-09 23:39:14 +0000
commit6489f188ac79459070d88b15f0f81c8976223a6f (patch)
treee21f319879deb78fd43260ae563124896aa4d111 /gcc
parent279b84660bf493976de41fe1320690dcae3ec279 (diff)
downloadgcc-6489f188ac79459070d88b15f0f81c8976223a6f.zip
gcc-6489f188ac79459070d88b15f0f81c8976223a6f.tar.gz
gcc-6489f188ac79459070d88b15f0f81c8976223a6f.tar.bz2
typeck.c (build_x_unary_op): Take note of the fact that PREINCREMENT_EXPR and POSTINCREMENT_EXPR are binary...
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/typeck.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4544e1b..7e70998 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 6d499d6..189bda2 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -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;
}