diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-27 19:01:12 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-27 19:01:12 +0000 |
commit | f8080a39e6e576a820dadb7a4e0bcf5e7c8ffa35 (patch) | |
tree | c5450fcab0b1a12085e22b318ece7eef4eba29bc /lib/AST/DeclBase.cpp | |
parent | 77bd57c4ac7cfdef0b263784ba227ba399e9d69b (diff) |
It is OK to cast to a private base class if the current member belongs to the class that the private base class is a base of:
class A {};
class B : private A {
void f(B *b) { A* a = b; }
};
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
0 files changed, 0 insertions, 0 deletions