]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/39109 (Accessible constructor required for new)
authorJason Merrill <jason@redhat.com>
Mon, 9 Feb 2009 21:46:18 +0000 (16:46 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 9 Feb 2009 21:46:18 +0000 (16:46 -0500)
commit450a927a7a65632a4aca39258ff2dd943802196e
tree82fa13f1148b5e6f8aca8bed6ab67a8e148af277
parent9a3b094ff2c230c3b8294ace002c77f28cfc1994
re PR c++/39109 (Accessible constructor required for new)

        PR c++/39109
        * semantics.c (simplify_aggr_init_expr): Do zero-initialization here.
        * init.c (build_value_init): Not here. Don't build a TARGET_EXPR.
        * tree.c (get_target_expr): Handle AGGR_INIT_EXPR.
        * cp-gimplify.c (cp_gimplify_init_expr): Remove special handling
        for build_value_init TARGET_EXPR.
        * cp-tree.h (AGGR_INIT_ZERO_FIRST): New macro.

From-SVN: r144044
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/value6.C [new file with mode: 0644]