зеркало из https://github.com/microsoft/clang-1.git
Fix a comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
03544fccd1
Коммит
b4143472c7
|
@ -781,7 +781,7 @@ static AccessResult HasAccess(Sema &S,
|
|||
|
||||
// Emulate a MSVC bug where the creation of pointer-to-member
|
||||
// to protected member of base class is allowed but only from
|
||||
// a static function member functions.
|
||||
// static member functions.
|
||||
if (S.getLangOpts().MicrosoftMode && !EC.Functions.empty())
|
||||
if (CXXMethodDecl* MD = dyn_cast<CXXMethodDecl>(EC.Functions.front()))
|
||||
if (MD->isStatic()) return AR_accessible;
|
||||
|
|
Загрузка…
Ссылка в новой задаче