diff options
author | John McCall <rjmccall@apple.com> | 2009-12-08 07:46:18 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-08 07:46:18 +0000 |
commit | 604e7f14d672af80ca5b9044f30f3dc23d37ddd5 (patch) | |
tree | de3d2fe20f8706b9592c8d50fad7fd6c91f2e846 /test/SemaCXX/using-decl-templates.cpp | |
parent | e8174bc483615e79614d9284a50ac94831e8b7c6 (diff) |
Correctly implement the C++03 and 0x restrictions on class-member using
declarations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-decl-templates.cpp')
-rw-r--r-- | test/SemaCXX/using-decl-templates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/using-decl-templates.cpp b/test/SemaCXX/using-decl-templates.cpp index 63fa4610cb..a19223d479 100644 --- a/test/SemaCXX/using-decl-templates.cpp +++ b/test/SemaCXX/using-decl-templates.cpp @@ -10,7 +10,7 @@ template<typename T> struct B : A<T> { using A<T>::N; // expected-error{{dependent using declaration resolved to type without 'typename'}} using A<T>::foo; // expected-error{{no member named 'foo'}} - using A<double>::f; // expected-error{{using declaration refers into 'A<double>::', which is not a base class of 'B'}} + using A<double>::f; // expected-error{{using declaration refers into 'A<double>::', which is not a base class of 'B<int>'}} }; B<int> a; // expected-note{{in instantiation of template class 'struct B<int>' requested here}} |