On 08/02/2012 12:21 PM, Paolo Carlini wrote:
+         if (complain & tf_error)
+           recheck_decl_substitution (spec, gen_tmpl, targ_ptr);
+         else
+           return error_mark_node;

I think we want to be consistent with the end of the function about whether we return error_mark_node or the decl after giving access errors in non-SFINAE context; I don't have a strong opinion either way, but this returns the decl, and the end of the function returns error_mark_node.

Jason

Reply via email to