diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-05-05 22:36:10 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-05-05 22:36:10 +0000 |
| commit | 14034026d6f1f45a4694e878a94089730be8ec5c (patch) | |
| tree | f738969f50f2439664ae64e71ab0f12d383cfe72 /clang/test/CXX/temp/temp.decls/p3.cpp | |
| parent | b79646cb2e9e969d3197b92cfdf4f740b00f0dc2 (diff) | |
| download | bcm5719-llvm-14034026d6f1f45a4694e878a94089730be8ec5c.tar.gz bcm5719-llvm-14034026d6f1f45a4694e878a94089730be8ec5c.zip | |
Slight tweak to alias template error handling: don't guess that a template-id in an alias declaration was meant to be a specialization. Use a generic, but more accurate, diagnostic.
llvm-svn: 130961
Diffstat (limited to 'clang/test/CXX/temp/temp.decls/p3.cpp')
| -rw-r--r-- | clang/test/CXX/temp/temp.decls/p3.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CXX/temp/temp.decls/p3.cpp b/clang/test/CXX/temp/temp.decls/p3.cpp index 21c82e6f227..54800e4061e 100644 --- a/clang/test/CXX/temp/temp.decls/p3.cpp +++ b/clang/test/CXX/temp/temp.decls/p3.cpp @@ -4,5 +4,4 @@ template<typename T> using A = int; template<typename T> using A<T*> = char; // expected-error {{partial specialization of alias templates is not permitted}} template<> using A<char> = char; // expected-error {{explicit specialization of alias templates is not permitted}} template using A<char> = char; // expected-error {{explicit instantiation of alias templates is not permitted}} -// Best guess as to what the user was trying to do: missing template<>. -using A<char> = char; // expected-error {{partial specialization of alias templates is not permitted}} +using A<char> = char; // expected-error {{name defined in alias declaration must be an identifier}} |

