[PING] [PATCH] PR c++/47346 - access control for nested type is ignored in template
Jason Merrill
jason@redhat.com
Wed Sep 7 22:15:00 GMT 2011
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
More information about the Gcc-patches
mailing list