re PR c++/16015 (xfailed g++.dg/ext/stmtexpr1.C)
authorJason Merrill <jason@redhat.com>
Thu, 17 Jun 2004 22:35:55 +0000 (18:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 17 Jun 2004 22:35:55 +0000 (18:35 -0400)
commit2692eb7d0ea1757cbf2508f001be9ee9f2f87ed3
tree2b8aade990ea880a225c9d2959e1a6b93ece70bb
parent6ffbdf03e5d6863c7441dce9adab8fbf724bc8a4
re PR c++/16015 (xfailed g++.dg/ext/stmtexpr1.C)

        PR c++/16015
        * gimplify.c (gimplify_target_expr): Handle void initializer.
        * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
        * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
        and AGGR_INIT_EXPR.
        * cp/semantics.c (simplify_aggr_init_expr): Don't return the slot.
        (finish_stmt_expr_expr): Update type after conversions.
        (finish_stmt_expr): Wrap initializer in CLEANUP_POINT_EXPR.
        Handle void initializer.
        * cp/tree.c (build_cplus_new): Make AGGR_INIT_EXPRs void.

From-SVN: r83320
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/doc/c-tree.texi
gcc/expr.c
gcc/gimplify.c
gcc/testsuite/g++.dg/ext/stmtexpr1.C
gcc/tree.def