summaryrefslogtreecommitdiff
path: root/test/SemaTemplate/temp_arg_template.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-11 16:16:59 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-11 16:16:59 +0000
commit658bbb5e8072ccd68b5ddc299d1b868aa047a746 (patch)
tree3d6cd69c47733641f35a9ab8b60fe2b812d022c2 /test/SemaTemplate/temp_arg_template.cpp
parentf1de4649e917f891d24e0718d02ee904b9edbe9d (diff)
downloadclang-658bbb5e8072ccd68b5ddc299d1b868aa047a746.tar.gz
clang-658bbb5e8072ccd68b5ddc299d1b868aa047a746.tar.bz2
clang-658bbb5e8072ccd68b5ddc299d1b868aa047a746.tar.xz
Implement semantic checking for template arguments that correspond to
pointer-to-member-data non-type template parameters. Also, get consistent about what it means to returned a bool from CheckTemplateArgument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/temp_arg_template.cpp')
-rw-r--r--test/SemaTemplate/temp_arg_template.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaTemplate/temp_arg_template.cpp b/test/SemaTemplate/temp_arg_template.cpp
index 3e8e6f25ce..e1b9bb4874 100644
--- a/test/SemaTemplate/temp_arg_template.cpp
+++ b/test/SemaTemplate/temp_arg_template.cpp
@@ -35,7 +35,8 @@ template<typename T> void f(int);
// FIXME: we're right to provide an error message, but it should say
// that we need a class template. We won't get this right until name
// lookup of 'f' returns a TemplateDecl.
-A<f> *a9; // expected-error{{template argument for template template parameter must be a template}}
+A<f> *a9; // expected-error{{template argument for template template parameter must be a template}} \
+ // expected-error{{unqualified-id}}
// FIXME: The code below is ill-formed, because of the evil digraph '<:'.
// We should provide a much better error message than we currently do.