[Bug c++/30847] [4.1/4.2/4.3 regression] ICE with invalid statement expression

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 3 09:25:00 GMT 2007



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

Author: jakub
Date: Tue Apr  3 10:25:31 2007
New Revision: 123461

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123461
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:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/parse/cond3.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/typeck.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list