summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/class-template-spec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-07 00:13:32 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-07 00:13:32 +0000
commit548886518d08649d72542babbe74f73b42d2d232 (patch)
tree5c4eeea90cd534c780231ca30ec9a188b3426ef8 /clang/test/SemaTemplate/class-template-spec.cpp
parent75b59fb0554de31529faefa4ec8d54c42e7b6203 (diff)
downloadbcm5719-llvm-548886518d08649d72542babbe74f73b42d2d232.tar.gz
bcm5719-llvm-548886518d08649d72542babbe74f73b42d2d232.zip
Refactor checking of the scope of explicit template specialization
declarations and explicit template instantiations, improving diagnostics and making the code usable for function template specializations (as well as class template specializations and partial specializations). llvm-svn: 83436
Diffstat (limited to 'clang/test/SemaTemplate/class-template-spec.cpp')
-rw-r--r--clang/test/SemaTemplate/class-template-spec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/class-template-spec.cpp b/clang/test/SemaTemplate/class-template-spec.cpp
index 34c616cc2f4..e4d917f7756 100644
--- a/clang/test/SemaTemplate/class-template-spec.cpp
+++ b/clang/test/SemaTemplate/class-template-spec.cpp
@@ -85,12 +85,12 @@ namespace N {
template<> struct N::B<int> { }; // okay
-template<> struct N::B<float> { }; // expected-error{{class template specialization of 'B' not in namespace 'N'}}
+template<> struct N::B<float> { }; // expected-error{{originally}}
namespace M {
template<> struct ::N::B<short> { }; // expected-error{{class template specialization of 'B' not in a namespace enclosing 'N'}}
- template<> struct ::A<long double>; // expected-error{{class template specialization of 'A' must occur in the global scope}}
+ template<> struct ::A<long double>; // expected-error{{originally}}
}
template<> struct N::B<char> {
OpenPOWER on IntegriCloud