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++/35987] [4.1/4.2/4.3/4.4 regression] ICE with invalid if-condition



------- Comment #1 from jakub at gcc dot gnu dot org  2008-04-29 08:55 -------
Subject: Bug 35987

Author: jakub
Date: Tue Apr 29 08:54:45 2008
New Revision: 134786

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134786
Log:
        PR c++/35987
        * typeck.c (cp_build_modify_expr) <case PREINCREMENT_EXPR>: Don't build
        COMPOUND_EXPR if the second argument would be error_mark_node.

        * g++.dg/other/error28.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/other/error28.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35987


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