diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-21 19:52:01 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-21 19:52:01 +0000 |
commit | 711f34adb886cce8ba86c7b1b6513a1eaaf63bb5 (patch) | |
tree | 2924029db55c4ce8e5e78220e02c7aca80c3c434 /test/CXX/class.access/p4.cpp | |
parent | 46c54fb8ec45765a475b7b709b9aee7f94c490c2 (diff) |
Keep tack of whether a base in an InitializedEntity is an inherited virtual base or not. Use this in CheckConstructorAccess.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/class.access/p4.cpp')
-rw-r--r-- | test/CXX/class.access/p4.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CXX/class.access/p4.cpp b/test/CXX/class.access/p4.cpp index 3d1578a4fc..fdde735062 100644 --- a/test/CXX/class.access/p4.cpp +++ b/test/CXX/class.access/p4.cpp @@ -103,9 +103,8 @@ namespace test2 { public: C(); }; - - // FIXME: It would be better if this said something about A being an inherited virtual base. - class D : C { }; // expected-error {{base class 'test2::A' has private constructor}} + + class D : C { }; // expected-error {{inherited virtual base class 'test2::A' has private constructor}} D d; } |