Re: C++ PATCH for default template argument access control SFINAE

2012-08-25 Thread Jason Merrill
On 08/25/2012 01:09 PM, Paolo Carlini wrote: suppose it's unintended, I can fix that at the first occasion... (also, the testcase itself has a few a little mysterious commented out lines, but I'm not going to insist ;) ;) Right, I forgot to uncomment those. Fixed, thanks. Jason

Re: C++ PATCH for default template argument access control SFINAE

2012-08-25 Thread Paolo Carlini
On 08/25/2012 05:29 AM, Jason Merrill wrote: I noticed that the earlier work on access control SFINAE didn't handle default template arguments; we weren't checking their access against the right declarations at all. In order to do that, we need to generate the DECL to compare against in fn_typ

C++ PATCH for default template argument access control SFINAE

2012-08-24 Thread Jason Merrill
I noticed that the earlier work on access control SFINAE didn't handle default template arguments; we weren't checking their access against the right declarations at all. In order to do that, we need to generate the DECL to compare against in fn_type_unification, when we still know what access