This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33709] [4.3 Regression] Type verification failure with new expression
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2007 22:40:25 -0000
- Subject: [Bug c++/33709] [4.3 Regression] Type verification failure with new expression
- References: <bug-33709-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2007-10-30 22:40 -------
Subject: Bug 33709
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33709