Commit e056dfd0 by Jason Merrill Committed by Jason Merrill

* call.c (build_new_method_call_1): Call reshape_init.

From-SVN: r225784
parent 87679b76
2015-07-14 Jason Merrill <jason@redhat.com>
* call.c (build_new_method_call_1): Call reshape_init.
2015-07-14 Paolo Carlini <paolo.carlini@oracle.com> 2015-07-14 Paolo Carlini <paolo.carlini@oracle.com>
* pt.c (check_template_shadow): Emit error + inform instead of * pt.c (check_template_shadow): Emit error + inform instead of
......
...@@ -8069,7 +8069,10 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args, ...@@ -8069,7 +8069,10 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
/* If BASETYPE is an aggregate, we need to do aggregate /* If BASETYPE is an aggregate, we need to do aggregate
initialization. */ initialization. */
else if (CP_AGGREGATE_TYPE_P (basetype)) else if (CP_AGGREGATE_TYPE_P (basetype))
init = digest_init (basetype, init_list, complain); {
init = reshape_init (basetype, init_list, complain);
init = digest_init (basetype, init, complain);
}
if (init) if (init)
{ {
......
// { dg-do compile { target c++11 } }
struct A
{
A() = default;
A(const A&) = default;
};
void f()
{
new A{A()};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment