summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/temp_class_spec_neg.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/temp_class_spec_neg.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/temp_class_spec_neg.cpp')
-rw-r--r--clang/test/SemaTemplate/temp_class_spec_neg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/temp_class_spec_neg.cpp b/clang/test/SemaTemplate/temp_class_spec_neg.cpp
index b50bd8f634a..a029f474fc5 100644
--- a/clang/test/SemaTemplate/temp_class_spec_neg.cpp
+++ b/clang/test/SemaTemplate/temp_class_spec_neg.cpp
@@ -9,7 +9,7 @@ namespace N {
}
template<typename T>
-struct N::M::A<T*> { }; // expected-error{{not in namespace}}
+struct N::M::A<T*> { }; // expected-error{{originally}}
// C++ [temp.class.spec]p9
// bullet 1
@@ -25,7 +25,7 @@ template <class T, T* t> struct C<T*, t>; // okay
template< int X, int (*array_ptr)[X] > class A2 {}; // expected-note{{here}}
int array[5];
-template< int X > class A2<X,&array> { }; // expected-error{{specializes}}
+template< int X > class A2<X, &array> { }; // expected-error{{specializes}}
template<typename T, int N, template<typename X> class TT>
struct Test0;
OpenPOWER on IntegriCloud