https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83835

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Perhaps we also want to set TARGET_EXPR_DIRECT_INIT_P here:

 6785         /* If this is a constructor or a function returning an aggr type,
 6786            we need to build up a TARGET_EXPR.  */
 6787         if (DECL_CONSTRUCTOR_P (convfn))
 6788           {
 6789             expr = build_cplus_new (totype, expr, complain);
 6790 
 6791             /* Remember that this was list-initialization.  */
 6792             if (convs->check_narrowing && expr != error_mark_node)
 6793               TARGET_EXPR_LIST_INIT_P (expr) = true;
 6794           }

Reply via email to