This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC / RFH] Re-opened C++/51213 (access control under SFINAE)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]