diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-15 01:15:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-15 01:15:58 +0000 |
commit | b048402073561ba28df4db691b0752c4998cc814 (patch) | |
tree | a143ce61455dd5ee05319ca850f5cccc447db749 /clang/test | |
parent | 6db2837f7f51ecb6821b8fe5b2a248abc548c5c7 (diff) | |
download | bcm5719-llvm-b048402073561ba28df4db691b0752c4998cc814.tar.gz bcm5719-llvm-b048402073561ba28df4db691b0752c4998cc814.zip |
When we are missing the ',' or '>' to terminate a template parameter
list, complain about it! Fixes PR7053.
llvm-svn: 116551
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/cxx-template-decl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index 3a97efac19e..4717dbb7dc2 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -6,7 +6,9 @@ template x; // expected-error {{C++ requires a type specifier for al // expected-error {{does not refer}} export template x; // expected-error {{expected '<' after 'template'}} export template<class T> class x0; // expected-warning {{exported templates are unsupported}} -template < ; // expected-error {{parse error}} expected-warning {{declaration does not declare anything}} +template < ; // expected-error {{parse error}} \ +// expected-error{{expected ',' or '>' in template-parameter-list}} \ +// expected-warning {{declaration does not declare anything}} template <template X> struct Err1; // expected-error {{expected '<' after 'template'}} \ // expected-error{{extraneous}} template <template <typename> > struct Err2; // expected-error {{expected 'class' before '>'}} \ |