PR c/35443
* c-pretty-print.c (pp_c_expression): Handle BIND_EXPR.
* gcc.dg/pr35443.c: New test.
From-SVN: r142559
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.
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.
--- /dev/null
+/* PR c/35443 */
+/* { dg-options "" } */
+/* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
+
+void
+foo ()
+{
+ ({ int i; i; })(); /* { dg-error "is not a function" } */
+}