re PR c++/35747 (ICE with undefined variable in statement expression)
authorJakub Jelinek <jakub@redhat.com>
Tue, 22 Apr 2008 22:06:58 +0000 (00:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 22 Apr 2008 22:06:58 +0000 (00:06 +0200)
commitd7b5fa315012328dbd9b2fd6cb0e1c82942752c3
tree5692fdd098bd754d9761dd4f49e80af93ed3a851
parentb2f06c39b01335127308567e5e074c3218011420
re PR c++/35747 (ICE with undefined variable in statement expression)

PR c++/35747
* semantics.c (finish_stmt_expr): Call pop_stmt_list even if the stmt
expression is errorneous.

* g++.dg/ext/stmtexpr13.C: New test.

From-SVN: r134567
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/stmtexpr13.C [new file with mode: 0644]