summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-05-23 03:43:44 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-05-23 03:43:44 +0000
commitefb1af9ae83fc28702b3b946fa05b3960f689d5c (patch)
tree65ba40b51909cb74660dee2b710d5dd316a082aa /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parentbc90690b24bdbc7d6d2f795bb77038a6c14d6120 (diff)
downloadbcm5719-llvm-efb1af9ae83fc28702b3b946fa05b3960f689d5c.tar.gz
bcm5719-llvm-efb1af9ae83fc28702b3b946fa05b3960f689d5c.zip
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. llvm-svn: 131896
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud