Comments
Patch
===================================================================
@@ -7535,7 +7535,11 @@ build_new_method_call_1 (tree instance, tree fns,
if (CONSTRUCTOR_NELTS (init_list) == 0
&& TYPE_HAS_DEFAULT_CONSTRUCTOR (basetype)
&& !processing_template_decl)
- init = build_value_init (basetype, complain);
+ {
+ push_deferring_access_checks (dk_no_check);
+ init = build_value_init (basetype, complain);
+ pop_deferring_access_checks ();
+ }
/* If BASETYPE is an aggregate, we need to do aggregate
initialization. */