diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-05-23 03:43:44 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-05-23 03:43:44 +0000 |
commit | b2ee8305f878259613b65d0f96a03f7f852977ea (patch) | |
tree | a58c35169e305e6e8c56296a2bb18525d99eeeb9 /examples | |
parent | f6f7f57c34164038e860713ee8d2f4ebd01cd9e4 (diff) |
Emulate a MSVC bug where if during an using declaration name lookup, the declaration found is unaccessible (private) and that declaration was bring into scope via another using declaration whose target declaration is accessible (public) then no error is generated.
Example:
class A { public: int f(); };
class B : public A { private: using A::f; };
class C : public B { private: using B::f; };
Here, B::f is private so this should fail in Standard C++, but because B::f refers to A::f which is public MSVC accepts it.
This fixes 1 error when parsing MFC code with clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions