diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-11 23:52:16 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-11 23:52:16 +0000 |
commit | 04e9a03e6f2b69523fcd4d911a4d714f33f01ec8 (patch) | |
tree | 0d549744c40217204f772db04f393ff1f0e228f8 /clang/test/SemaTemplate/nested-name-spec-template.cpp | |
parent | f9351cff98dfaebd5f2a42a8d2c4e65a5682aac4 (diff) | |
download | bcm5719-llvm-04e9a03e6f2b69523fcd4d911a4d714f33f01ec8.tar.gz bcm5719-llvm-04e9a03e6f2b69523fcd4d911a4d714f33f01ec8.zip |
Fix various problems with matching out-of-line definitions of static
class members to the corresponding in-class declaration.
Diagnose the erroneous use of 'static' on out-of-line definitions of
class members.
llvm-svn: 66740
Diffstat (limited to 'clang/test/SemaTemplate/nested-name-spec-template.cpp')
-rw-r--r-- | clang/test/SemaTemplate/nested-name-spec-template.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaTemplate/nested-name-spec-template.cpp b/clang/test/SemaTemplate/nested-name-spec-template.cpp index 4007f232c45..8db2bc34296 100644 --- a/clang/test/SemaTemplate/nested-name-spec-template.cpp +++ b/clang/test/SemaTemplate/nested-name-spec-template.cpp @@ -33,8 +33,7 @@ N::M::template; // expected-error{{expected template name after 'template' keywo N::M::template Promote; // expected-error{{expected '<' after 'template Promote' in nested name specifier}} \ // expected-error{{C++ requires a type specifier for all declarations}} \ -// expected-error{{redefinition of 'Promote' as different kind of symbol}} \ -// expected-error{{no member named 'Promote'}} +// expected-error{{redefinition of 'Promote' as different kind of symbol}} namespace N { template<typename T> struct A; |