re PR c++/35987 (ICE with invalid if-condition)
authorJakub Jelinek <jakub@redhat.com>
Tue, 29 Apr 2008 08:54:45 +0000 (10:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 29 Apr 2008 08:54:45 +0000 (10:54 +0200)
commitf2be060fd3c04b05c22f3c75c1e32f5b1c7a0f43
treec32099684fbe608cfcab212a16d22c8b3582d0c6
parentb397e31bd8dcc8b2c112a57e7dca2785cdbf569f
re PR c++/35987 (ICE with invalid if-condition)

PR c++/35987
* typeck.c (cp_build_modify_expr) <case PREINCREMENT_EXPR>: Don't build
COMPOUND_EXPR if the second argument would be error_mark_node.

* g++.dg/other/error28.C: New test.

From-SVN: r134786
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/error28.C [new file with mode: 0644]