summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-template-decl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-08 21:33:23 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-08 21:33:23 +0000
commitf19ac0ede900dae8188eae0362027e60bfa82a32 (patch)
treefb13a15dbe02acb3e93a7de7a30bdfb70975fd1b /clang/test/Parser/cxx-template-decl.cpp
parentd9235dbc02f6b7054952b25a22c16670dfa8cb92 (diff)
downloadbcm5719-llvm-f19ac0ede900dae8188eae0362027e60bfa82a32.tar.gz
bcm5719-llvm-f19ac0ede900dae8188eae0362027e60bfa82a32.zip
Downgrade the "declaration does not declare anything" error to a
warning. It's not harmful to have such pointless declarations, and GCC does not diagnose this issue consistently. llvm-svn: 100814
Diffstat (limited to 'clang/test/Parser/cxx-template-decl.cpp')
-rw-r--r--clang/test/Parser/cxx-template-decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp
index 3f8f1ec9d0b..3a97efac19e 100644
--- a/clang/test/Parser/cxx-template-decl.cpp
+++ b/clang/test/Parser/cxx-template-decl.cpp
@@ -6,7 +6,7 @@ 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-error {{declaration does not declare anything}}
+template < ; // expected-error {{parse error}} 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 '>'}} \
OpenPOWER on IntegriCloud