]> granicus.if.org Git - clang/commit
When checking access control for an instance member access on
authorJohn McCall <rjmccall@apple.com>
Sat, 28 Aug 2010 07:56:00 +0000 (07:56 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 28 Aug 2010 07:56:00 +0000 (07:56 +0000)
commit8c77bcb072e7fd089f39fd7e079b6d767bf583fa
treefba55288e6fc7001fd415a04c0d9422ad308c764
parentaaafddba8b2b7f2f601bd86fdafaefde38da469d
When checking access control for an instance member access on
an object of type I, if the current access target is protected
when named in a class N, consider the friends of the classes P
where I <= P <= N and where a notional member of N would be
non-forbidden in P.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112358 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaAccess.cpp
test/CXX/class.access/class.protected/p1.cpp