+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.
+
2012-12-07 Dodji Seketeli <dodji@redhat.com>
PR c++/54401
extern tree build_min_non_dep (enum tree_code, tree, ...);
extern tree build_min_non_dep_call_vec (tree, tree, vec<tree, va_gc> *);
extern tree build_cplus_new (tree, tree, tsubst_flags_t);
-extern tree build_aggr_init_expr (tree, tree, tsubst_flags_t);
+extern tree build_aggr_init_expr (tree, tree);
extern tree get_target_expr (tree);
extern tree get_target_expr_sfinae (tree, tsubst_flags_t);
extern tree build_cplus_array_type (tree, tree);
(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
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;
callable. */
tree
-build_aggr_init_expr (tree type, tree init, tsubst_flags_t /*complain*/)
+build_aggr_init_expr (tree type, tree init)
{
tree fn;
tree slot;
tree
build_cplus_new (tree type, tree init, tsubst_flags_t complain)
{
- tree rval = build_aggr_init_expr (type, init, complain);
+ tree rval = build_aggr_init_expr (type, init);
tree slot;
/* Make sure that we're not trying to create an instance of an