This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r123462 - in /branches/gcc-4_1-branch/gcc: cp/C...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2007 09:28:35 -0000
- Subject: r123462 - in /branches/gcc-4_1-branch/gcc: cp/C...
Author: jakub
Date: Tue Apr 3 10:28:35 2007
New Revision: 123462
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123462
Log:
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.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/cond3.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog