diff options
| author | John McCall <rjmccall@apple.com> | 2010-03-25 21:39:55 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-03-25 21:39:55 +0000 |
| commit | 27e70baa558c7d60a18930adba3e28e16a3635b5 (patch) | |
| tree | 2d567e8c9c2363c3ed52e59a67855ee4f2214aa3 /clang/lib | |
| parent | e9eaf8e0f831b53f1f4996494740e8d7a5edb24f (diff) | |
| download | bcm5719-llvm-27e70baa558c7d60a18930adba3e28e16a3635b5.tar.gz bcm5719-llvm-27e70baa558c7d60a18930adba3e28e16a3635b5.zip | |
Fix a very minor oversight in privileges-elevation: we were only considering
friendship for a derived class if the base class specifier was non-public,
and thus not considering friendship for non-public members of public bases.
llvm-svn: 99554
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaAccess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaAccess.cpp b/clang/lib/Sema/SemaAccess.cpp index 196bc117791..a92989696e3 100644 --- a/clang/lib/Sema/SemaAccess.cpp +++ b/clang/lib/Sema/SemaAccess.cpp @@ -429,7 +429,7 @@ static CXXBasePath *FindBestPath(Sema &S, } AccessSpecifier BaseAccess = I->Base->getAccessSpecifier(); - if (BaseAccess != AS_public) { + if (BaseAccess != AS_public || PathAccess != AS_public) { switch (GetFriendKind(S, EC, I->Class)) { case Sema::AR_inaccessible: PathAccess = CXXRecordDecl::MergeAccess(BaseAccess, PathAccess); |

