+2009-01-09 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/35742
+ * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like
+ BIND_EXPR.
+
2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa.c (last_address): Change to unsigned.
/* Subroutines common to both C and C++ pretty-printers.
- Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
Free Software Foundation, Inc.
Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
break;
case BIND_EXPR:
+ case GOTO_EXPR:
/* We don't yet have a way of dumping statements in a
human-readable format. */
pp_string (pp, "({...})");
--- /dev/null
+/* PR c/35742 */
+/* { dg-do compile } */
+/* { dg-options "-std=gnu99" } */
+/* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
+
+void
+foo ()
+{
+ for (;;)
+ ({break;})(); /* { dg-error "is not a function" } */
+ for (;;)
+ ({continue;})(); /* { dg-error "is not a function" } */
+}