On 08/31/2011 09:56 AM, Dodji Seketeli wrote:
+         /* So if we are parsing a friend template declaration, then
+            we should make sure that looking up the name of the
+            declaration doesn't schedule it for type access checking
+            at the time of instantiation of the current containing
+            template class, if any.  */
+         cp_no_type_access_check_p = is_friend;

Why does this need to be handled differently from non-template friends?

Perhaps the template type access checking code should be adjusted to use the existing deferred access checking code in semantics.c: push_deferring_access_checks and such.

Jason

Reply via email to