re PR c++/30847 (ICE with invalid statement expression)
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Apr 2007 09:08:00 +0000 (11:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Apr 2007 09:08:00 +0000 (11:08 +0200)
commitdf3473facbac90274ca6e5d6e6ce3db2152dce35
tree2278f06f550aeb7aeabbae2ccf061eabc975882e
parent0a9430a8312d9f5a3795747773796b21d3bfe526
re PR c++/30847 (ICE with invalid statement expression)

PR c++/30847
* typeck.c (build_modify_expr): For COND_EXPR on LHS, if RHS has void
type issue error and return early.

* g++.dg/parse/cond3.C: New test.

From-SVN: r123456
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/cond3.C [new file with mode: 0644]