PR c++/33709
commit02dc5c73a71c14141bd87b3d50a573431e5fcf78
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Oct 2007 22:40:13 +0000 (30 22:40 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Oct 2007 22:40:13 +0000 (30 22:40 +0000)
treee513c43598d7397ff47b6939f966833088e4837a
parent0511e4b81767e5c6baf52c85c0896826d1a03196
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129785 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/compound1.C [new file with mode: 0644]