summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/class-template-spec.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-12 05:24:55 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-12 05:24:55 +0000
commit8ce63154d07fb4924d5fcbbc0dd96f7f19634831 (patch)
tree643b75c3abdd4c7049b7dd15b3b4f4bac164ae78 /clang/test/SemaTemplate/class-template-spec.cpp
parentb1aab4388791192029e59462819eebb820ee3631 (diff)
downloadbcm5719-llvm-8ce63154d07fb4924d5fcbbc0dd96f7f19634831.tar.gz
bcm5719-llvm-8ce63154d07fb4924d5fcbbc0dd96f7f19634831.zip
When diagnosing C++ [temp.expl.spec]p3 in C++98/03 mode, downgrade the
error to a warning if we're in a case that would be allowed in C++0x. This "fixes" PR8084 by making Clang accept more code than GCC and (non-strict) EDG do. Also, add the missing test case for the C++0x semantics, which should have been in r113717. llvm-svn: 113718
Diffstat (limited to 'clang/test/SemaTemplate/class-template-spec.cpp')
-rw-r--r--clang/test/SemaTemplate/class-template-spec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/class-template-spec.cpp b/clang/test/SemaTemplate/class-template-spec.cpp
index c65802e5c86..07a5e2982c7 100644
--- a/clang/test/SemaTemplate/class-template-spec.cpp
+++ b/clang/test/SemaTemplate/class-template-spec.cpp
@@ -86,7 +86,7 @@ namespace N {
template<> struct N::B<int> { }; // okay
-template<> struct N::B<float> { }; // expected-error{{originally}}
+template<> struct N::B<float> { }; // expected-warning{{originally}}
namespace M {
template<> struct ::N::B<short> { }; // expected-error{{class template specialization of 'B' not in a namespace enclosing 'N'}}
OpenPOWER on IntegriCloud