+2009-01-09 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/35335
+ * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
+
2009-01-09 John F. Carr <jfc@mit.edu>
PR c++/37877
/* Call-backs for C++ error reporting.
This code is non-reentrant.
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
case BIND_EXPR:
case STMT_EXPR:
+ case EXPR_STMT:
case STATEMENT_LIST:
/* We don't yet have a way of dumping statements in a
human-readable format. */
--- /dev/null
+// PR c++/35335
+// { dg-do compile }
+// { dg-options "" }
+// { dg-bogus "not supported by" "" { target *-*-* } 0 }
+
+struct A {}; // { dg-message "note: candidates are" }
+
+void
+foo ()
+{
+ A a;
+ a = ({ { 1; } }); // { dg-error "no match for" }
+}