re PR c++/33709 (Type verification failure with new expression)
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Oct 2007 22:40:13 +0000 (23:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 Oct 2007 22:40:13 +0000 (23:40 +0100)
commit33a49c17e8437b2405616dbd4294a59cd339b880
treee513c43598d7397ff47b6939f966833088e4837a
parent4c38e99eb4137eab7acfed72c434d8667051372e
re PR c++/33709 (Type verification failure with new expression)

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.

From-SVN: r129785
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/compound1.C [new file with mode: 0644]