diff options
author | Jason Merrill <jason@redhat.com> | 2008-07-31 01:07:10 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2008-07-31 01:07:10 -0400 |
commit | 844ae01db8ad6b8e57daa9575efbe1ff167f816e (patch) | |
tree | 4c377201cbda61af3498bf53c2cea3af56936cd1 /gcc/cp/typeck.c | |
parent | 636b71b99ca087d00936621b9c518b3451254a2c (diff) | |
download | gcc-844ae01db8ad6b8e57daa9575efbe1ff167f816e.zip gcc-844ae01db8ad6b8e57daa9575efbe1ff167f816e.tar.gz gcc-844ae01db8ad6b8e57daa9575efbe1ff167f816e.tar.bz2 |
re PR c++/11309 (Testsuite failures in g++.dg/expr/anew1.C (and anew2.C anew3.C anew4.c))
PR c++/11309
* tree.c (build_aggr_init_expr): Split out...
(build_cplus_new): ...from here.
(stabilize_init): Don't mess with AGGR_INIT_EXPR either.
* init.c (build_new_1): new T() means value-initialization,
not default-initialization.
(build_vec_init): Likewise.
(build_value_init_1): Use build_aggr_init_expr.
From-SVN: r138355
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index ba1d028..feb6b5f 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -6114,7 +6114,7 @@ cp_build_modify_expr (tree lhs, enum tree_code modifycode, tree rhs, from_array = TREE_CODE (TREE_TYPE (newrhs)) == ARRAY_TYPE ? 1 + (modifycode != INIT_EXPR): 0; return build_vec_init (lhs, NULL_TREE, newrhs, - /*explicit_default_init_p=*/false, + /*explicit_value_init_p=*/false, from_array, complain); } |