summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-09 13:34:44 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-09 13:34:44 +0000
commitbf810855422e4f54c4a34b6ac80ed20f414858ad (patch)
treefb3a56350841d4f14ed66365799f9c6d6881954a /gcc/cp/error.c
parentec538a41e23c38bcc7b4393cecbd3ec6bd4ad544 (diff)
downloadgcc-bf810855422e4f54c4a34b6ac80ed20f414858ad.tar.gz
2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
* error.c (dump_expr, [PSEUDO_DTOR_EXPR]): Fix. * cxx-pretty-print.c (cxx_pretty_printer::postfix_expression): Tweak, TREE_OPERAND (t, 1) may be null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202401 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 78c74b65e67..a51984e2eb4 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -2472,12 +2472,15 @@ dump_expr (cxx_pretty_printer *pp, tree t, int flags)
break;
case PSEUDO_DTOR_EXPR:
- dump_expr (pp, TREE_OPERAND (t, 2), flags);
+ dump_expr (pp, TREE_OPERAND (t, 0), flags);
pp_cxx_dot (pp);
- dump_type (pp, TREE_OPERAND (t, 0), flags);
- pp_cxx_colon_colon (pp);
+ if (TREE_OPERAND (t, 1))
+ {
+ dump_type (pp, TREE_OPERAND (t, 1), flags);
+ pp_cxx_colon_colon (pp);
+ }
pp_cxx_complement (pp);
- dump_type (pp, TREE_OPERAND (t, 1), flags);
+ dump_type (pp, TREE_OPERAND (t, 2), flags);
break;
case TEMPLATE_ID_EXPR: