Commit c0c66032 by Paolo Carlini Committed by Paolo Carlini

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
parent 274b2532
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.
2013-09-08 Caroline Tice <cmtice@google.com>
PR c++/58300
* vtable-class-hierarchy.c (vtv_generate_init_routine): In
preinit case, move call to assemble_vtv_preinit_initializer to
after call to cgraph_process_new_functions.
2013-09-08 Tom de Vries <tom@codesourcery.com>
PR c++/58282
......
......@@ -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;
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment