[Bug c++/39109] [4.4 Regression] Accessible constructor required for new
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 9 21:46:00 GMT 2009
------- Comment #1 from jason at gcc dot gnu dot org 2009-02-09 21:46 -------
Subject: Bug 39109
Author: jason
Date: Mon Feb 9 21:46:18 2009
New Revision: 144044
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144044
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/init/value6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39109
More information about the Gcc-bugs
mailing list