Commit fb38d8d2 by Jakub Jelinek Committed by Jakub Jelinek

re PR c/35443 (Completely broken diagnostic with bind_expr)

	PR c/35443
	* c-pretty-print.c (pp_c_expression): Handle BIND_EXPR.

	* gcc.dg/pr35443.c: New test.

From-SVN: r142559
parent 4e37eb44
2008-12-08 Jakub Jelinek <jakub@redhat.com>
PR c/35443
* c-pretty-print.c (pp_c_expression): Handle BIND_EXPR.
PR c/35442
* c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
VIEW_CONVERT_EXPR the same as CASE_CONVERT.
......@@ -2103,6 +2103,12 @@ pp_c_expression (c_pretty_printer *pp, tree e)
pp_postfix_expression (pp, TREE_OPERAND (e, 1));
break;
case BIND_EXPR:
/* We don't yet have a way of dumping statements in a
human-readable format. */
pp_string (pp, "({...})");
break;
default:
pp_unsupported_tree (pp, e);
break;
......
2008-12-08 Jakub Jelinek <jakub@redhat.com>
PR c/35443
* gcc.dg/pr35443.c: New test.
PR c/35442
* gcc.dg/pr35442.c: New test.
......
/* PR c/35443 */
/* { dg-options "" } */
/* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
void
foo ()
{
({ int i; i; })(); /* { dg-error "is not a function" } */
}
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