diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-22 17:18:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-22 17:18:37 +0000 |
commit | b09f3d82cc7ed9aacb0260b23704e285b0efa689 (patch) | |
tree | 8aae2efa95b54d13c583a8a85d03ceef8cccdd30 /clang/test/Parser/cxx-template-decl.cpp | |
parent | 3de6b707302be0a4e55a4503d7b1d71b0cc3f837 (diff) | |
download | bcm5719-llvm-b09f3d82cc7ed9aacb0260b23704e285b0efa689.tar.gz bcm5719-llvm-b09f3d82cc7ed9aacb0260b23704e285b0efa689.zip |
Implement parsing and semantic analysis for out-of-line definitions of static
data members of class templates. We don't instantiate the definitions yet,
however.
llvm-svn: 76756
Diffstat (limited to 'clang/test/Parser/cxx-template-decl.cpp')
-rw-r--r-- | clang/test/Parser/cxx-template-decl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-template-decl.cpp b/clang/test/Parser/cxx-template-decl.cpp index 69550187909..b7117cd8d62 100644 --- a/clang/test/Parser/cxx-template-decl.cpp +++ b/clang/test/Parser/cxx-template-decl.cpp @@ -5,7 +5,8 @@ export class foo { }; // expected-error {{expected template}} template x; // expected-error {{C++ requires a type specifier for all declarations}} export template x; // expected-error {{expected '<' after 'template'}} \ // expected-note {{exported templates are unsupported}} \ -// expected-error {{C++ requires a type specifier for all declarations}} +// expected-error {{C++ requires a type specifier for all declarations}} \ +// expected-error {{declared as a template}} // See Sema::ParsedFreeStandingDeclSpec about the double diagnostic. This is // because ParseNonTypeTemplateParameter starts parsing a DeclSpec. template < ; // expected-error {{parse error}} expected-error {{declaration does not declare anything}} |