+2011-05-24 Jason Merrill <jason@redhat.com>
+
+ PR c++/49042
+ * pt.c (get_mostly_instantiated_function_type): Use
+ push_deferring_access_checks rather than set flag_access_control.
+
2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>,
* parser.c (cp_parser_objc_class_ivars): Deal gracefully with a
;
else
{
- int i, save_access_control;
+ int i;
tree partial_args;
/* Replace the innermost level of the TARGS with NULL_TREEs to
/* Disable access control as this function is used only during
name-mangling. */
- save_access_control = flag_access_control;
- flag_access_control = 0;
+ push_deferring_access_checks (dk_no_check);
++processing_template_decl;
/* Now, do the (partial) substitution to figure out the
TREE_VEC_LENGTH (partial_args)--;
tparms = tsubst_template_parms (tparms, partial_args, tf_error);
- flag_access_control = save_access_control;
+ pop_deferring_access_checks ();
}
return fn_type;