aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 71b7173..c897b64 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1512,15 +1512,7 @@ dump_expr (tree t, int flags)
break;
case UNARY_PLUS_EXPR:
- if (TREE_TYPE (t) && VOID_TYPE_P (TREE_TYPE (t)))
- {
- pp_cxx_left_paren (cxx_pp);
- dump_type (TREE_TYPE (t), flags);
- pp_cxx_right_paren (cxx_pp);
- dump_expr (TREE_OPERAND (t, 0), flags);
- }
- else
- dump_unary_op ("+", t, flags);
+ dump_unary_op ("+", t, flags);
break;
case ADDR_EXPR:
@@ -1600,6 +1592,7 @@ dump_expr (tree t, int flags)
break;
case NOP_EXPR:
+ case CONVERT_EXPR:
{
tree op = TREE_OPERAND (t, 0);