This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r129785 - in /trunk/gcc: ChangeLog fold-const.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 30 Oct 2007 22:40:14 -0000
- Subject: r129785 - in /trunk/gcc: ChangeLog fold-const.c...
Author: jakub
Date: Tue Oct 30 22:40:13 2007
New Revision: 129785
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129785
Log:
PR c++/33709
* fold-const.c (fold_binary): If one argument is COMPOUND_EXPR,
convert second operand of COMPOUND_EXPR to the original type of
that argument.
* g++.dg/opt/compound1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/compound1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog