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.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 86b336e..491e56a 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1491,20 +1491,9 @@ dump_expr (tree t, int flags)
case COMPOUND_EXPR:
pp_left_paren (cxx_pp);
- /* Within templates, a COMPOUND_EXPR has only one operand,
- containing a TREE_LIST of the two operands. */
- if (TREE_CODE (TREE_OPERAND (t, 0)) == TREE_LIST)
- {
- if (TREE_OPERAND (t, 1))
- abort();
- dump_expr_list (TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS);
- }
- else
- {
- dump_expr (TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS);
- pp_separate_with_comma (cxx_pp);
- dump_expr (TREE_OPERAND (t, 1), flags | TFF_EXPR_IN_PARENS);
- }
+ dump_expr (TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS);
+ pp_separate_with_comma (cxx_pp);
+ dump_expr (TREE_OPERAND (t, 1), flags | TFF_EXPR_IN_PARENS);
pp_right_paren (cxx_pp);
break;