summaryrefslogtreecommitdiffstats
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-07 23:17:14 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-12-07 23:17:14 +0000
commit80b5dab01737ef9ca0f197d8a81b42f31d0bf07d (patch)
treeeb0552d951b09f16d0b323a81a8cd37259741d14 /gcc/cp/init.c
parente83660d17a3ed9fb20339118d07452f5d95b27b2 (diff)
downloadppe42-gcc-80b5dab01737ef9ca0f197d8a81b42f31d0bf07d.tar.gz
ppe42-gcc-80b5dab01737ef9ca0f197d8a81b42f31d0bf07d.zip
2012-12-07 Paolo Carlini <paolo.carlini@oracle.com>
* tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter. (build_cplus_new): Adjust. * cp-tree.h: Adjust declaration. * init.c (build_value_init): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194312 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r--gcc/cp/init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 2206c169bec..6edc0a5df8b 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -350,8 +350,7 @@ build_value_init (tree type, tsubst_flags_t complain)
(type,
build_special_member_call (NULL_TREE, complete_ctor_identifier,
NULL, type, LOOKUP_NORMAL,
- complain),
- complain);
+ complain));
else if (TYPE_HAS_COMPLEX_DFLT (type))
{
/* This is a class that needs constructing, but doesn't have
@@ -361,7 +360,7 @@ build_value_init (tree type, tsubst_flags_t complain)
tree ctor = build_special_member_call
(NULL_TREE, complete_ctor_identifier,
NULL, type, LOOKUP_NORMAL, complain);
- ctor = build_aggr_init_expr (type, ctor, complain);
+ ctor = build_aggr_init_expr (type, ctor);
if (ctor != error_mark_node)
AGGR_INIT_ZERO_FIRST (ctor) = 1;
return ctor;
OpenPOWER on IntegriCloud