aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/class.access/class.access.base/p5.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-28 04:34:55 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-28 04:34:55 +0000
commit76ef658c703faf72c00f324fb9edc03169718e3e (patch)
tree7ec1f9a2fc34f284c7e4527aa4a975abef6df9b4 /test/CXX/class.access/class.access.base/p5.cpp
parentc302f002f5e88a7ce29026bf9b006ff6774892b5 (diff)
When we complain about a member being inaccessible due to a constraint
along an access path, add another note pointing at the member we actually found. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/class.access/class.access.base/p5.cpp')
-rw-r--r--test/CXX/class.access/class.access.base/p5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CXX/class.access/class.access.base/p5.cpp b/test/CXX/class.access/class.access.base/p5.cpp
index 938d9fbe9b..255fbfc9fc 100644
--- a/test/CXX/class.access/class.access.base/p5.cpp
+++ b/test/CXX/class.access/class.access.base/p5.cpp
@@ -27,7 +27,7 @@ namespace test1 {
};
struct D {
- public: static int x;
+ public: static int x; // expected-note{{member is declared here}}
static int test() { return x; }
};
struct E : private D { // expected-note{{constrained by private inheritance}}
@@ -45,7 +45,7 @@ namespace test1 {
namespace test2 {
class A {
- protected: static int x;
+ protected: static int x; // expected-note{{member is declared here}}
};
class B : private A {}; // expected-note {{private inheritance}}