aboutsummaryrefslogtreecommitdiff
path: root/test/CXX
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-13 21:16:44 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-13 21:16:44 +0000
commit3f09327b26033d0a9676d52d80cf92c48f581aff (patch)
tree039a1889fa3bd411d947c5642da2182868e05489 /test/CXX
parentcee1b54e11cb4d460634e6ecedbe75c7c2382389 (diff)
Unify our diagnostic printing for errors of the form, "we didn't like
what we found when we looked into <blah>", where <blah> is a DeclContext*. We can now format DeclContext*'s in nice ways, e.g., "namespace N", "the global namespace", "'class Foo'". This is part of PR3990, but we're not quite there yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r--test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp b/test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp
index 04129f8091..a5877d281d 100644
--- a/test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp
+++ b/test/CXX/temp/temp.spec/temp.expl.spec/p18.cpp
@@ -9,12 +9,12 @@ template<class T1> class A {
template<> template<class X>
class A<long>::B { };
-// FIXME: If we make the explicit specialization of A<long>::B, above, into
-// a specialization of A<int>::B, our diagnostic is correct but not very
-// helpful.
template<> template<> template<class T>
void A<int>::B<double>::mf1(T t) { }
+template<> template<> template<class T>
+void A<long>::B<double>::mf1(T t) { } // expected-error{{does not match}}
+
// FIXME: This diagnostic could probably be better.
template<class Y> template<>
void A<Y>::B<double>::mf2() { } // expected-error{{does not refer}}