diff options
Diffstat (limited to 'test/CXX/temp/p3.cpp')
-rw-r--r-- | test/CXX/temp/p3.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CXX/temp/p3.cpp b/test/CXX/temp/p3.cpp index 16ebb38..c146bc4 100644 --- a/test/CXX/temp/p3.cpp +++ b/test/CXX/temp/p3.cpp @@ -6,11 +6,9 @@ template<typename T> struct S { template<typename T> int S<T>::a, S<T>::b; // expected-error {{can only declare a single entity}} -// FIXME: the last two diagnostics here are terrible. template<typename T> struct A { static A a; } A<T>::a; // expected-error {{expected ';' after struct}} \ expected-error {{use of undeclared identifier 'T'}} \ - expected-error {{cannot name the global scope}} \ - expected-error {{no member named 'a' in the global namespace}} + expected-warning{{extra qualification}} template<typename T> struct B { } f(); // expected-error {{expected ';' after struct}} \ expected-error {{requires a type specifier}} |