]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR c++/35335 (Broken diagnostic: 'expr_stmt' not supported by dump_expr)
authorRichard Guenther <rguenther@suse.de>
Tue, 20 Apr 2010 13:39:44 +0000 (13:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 20 Apr 2010 13:39:44 +0000 (13:39 +0000)
2010-04-20  Richard Guenther  <rguenther@suse.de>

Backport from mainline
2009-01-09  Jakub Jelinek  <jakub@redhat.com>

PR c++/35335
* error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.

From-SVN: r158556

gcc/cp/ChangeLog
gcc/cp/error.c

index c81318730048ac05fbe274eba61de61bb694ce3c..5b891c00a8837ba60786db44587c6a4c9ff65679 100644 (file)
@@ -1,3 +1,11 @@
+2010-04-20  Richard Guenther  <rguenther@suse.de>
+
+       Backport from mainline
+       2009-01-09  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/35335
+       * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
+
 2009-11-13  Jason Merrill  <jason@redhat.com>
 
        PR c++/21008, DR 515
index 8b53257425f47985e4601009c0d3b9eeeb833c06..daf8ddf35f681cc987aa0007a91da320a5805d80 100644 (file)
@@ -2002,6 +2002,7 @@ dump_expr (tree t, int flags)
 
     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.  */