aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-09-09 13:34:44 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2013-09-09 13:34:44 +0000
commitc0c66032cabc9ec8ca24f8e9d5d8f1e616bba373 (patch)
treefb3a56350841d4f14ed66365799f9c6d6881954a /gcc/cp/cxx-pretty-print.c
parent274b2532360e1615cdbde890c32c928c69ac45cc (diff)
downloadgcc-c0c66032cabc9ec8ca24f8e9d5d8f1e616bba373.zip
gcc-c0c66032cabc9ec8ca24f8e9d5d8f1e616bba373.tar.gz
gcc-c0c66032cabc9ec8ca24f8e9d5d8f1e616bba373.tar.bz2
error.c (dump_expr, [...]): Fix.
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. From-SVN: r202401
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r--gcc/cp/cxx-pretty-print.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index 4578a5b..86d8b47 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -618,8 +618,11 @@ cxx_pretty_printer::postfix_expression (tree t)
case PSEUDO_DTOR_EXPR:
postfix_expression (TREE_OPERAND (t, 0));
pp_cxx_dot (this);
- pp_cxx_qualified_id (this, TREE_OPERAND (t, 1));
- pp_cxx_colon_colon (this);
+ if (TREE_OPERAND (t, 1))
+ {
+ pp_cxx_qualified_id (this, TREE_OPERAND (t, 1));
+ pp_cxx_colon_colon (this);
+ }
pp_complement (this);
pp_cxx_unqualified_id (this, TREE_OPERAND (t, 2));
break;