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++/30847] [4.1/4.2/4.3 regression] ICE with invalid statement expression



------- Comment #2 from jakub at gcc dot gnu dot org  2007-04-03 10:08 -------
Subject: Bug 30847

Author: jakub
Date: Tue Apr  3 10:08:00 2007
New Revision: 123456

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123456
Log:
        PR c++/30847
        * typeck.c (build_modify_expr): For COND_EXPR on LHS, if RHS has void
        type issue error and return early.

        * g++.dg/parse/cond3.C: New test.

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


-- 


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


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