aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/class-template-id.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-30 06:26:29 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-30 06:26:29 +0000
commit207014eb2b372aa33721e86d90a8a586ba8dc8ae (patch)
tree4b927c519af3af593ad65ec58ba61855c618d75e /test/SemaTemplate/class-template-id.cpp
parent27940d2fb346325d6001a7661e4ada099cd8e59c (diff)
Improve error recovery when presented with an ill-formed template-id
(e.g. due to a broken template argument) following template parameters. Fixes rdar://problem/8254267 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/class-template-id.cpp')
-rw-r--r--test/SemaTemplate/class-template-id.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaTemplate/class-template-id.cpp b/test/SemaTemplate/class-template-id.cpp
index df5ef554f7..50e0b00c1a 100644
--- a/test/SemaTemplate/class-template-id.cpp
+++ b/test/SemaTemplate/class-template-id.cpp
@@ -41,3 +41,7 @@ typedef N::C<float> c2;
template<typename T> struct Foo { }; // expected-note{{template is declared here}}
void f(void) { Foo bar; } // expected-error{{without a template argument list}}
+
+// rdar://problem/8254267
+template <typename T> class Party;
+template <> class Party<T> { friend struct Party<>; }; // expected-error {{use of undeclared identifier 'T'}}