[Bug c++/30158] [4.0/4.1/4.2/4.3 regression] ICE with invalid statement-expressions

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Feb 16 01:23:00 GMT 2007



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-02-16 01:23 -------
Subject: Bug 30158

Author: pinskia
Date: Fri Feb 16 01:23:35 2007
New Revision: 122028

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122028
Log:
2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/30158
        * semantics.c (finish_stmt_expr_expr): Set TREE_TYPE of the
        statement expression if we had an error mark node.
2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/30158
        * g++.dg/ext/stmtexpr10.C: New testcase.


Added:
    trunk/gcc/testsuite/g++.dg/ext/stmtexpr10.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


-- 


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



More information about the Gcc-bugs mailing list