This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33709] [4.3 Regression] Type verification failure with new expression



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]