diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-12-16 08:56:23 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-12-16 08:56:23 +0000 |
| commit | e1520d66087a47ef8c28dfe57d5cac4de8d6e6a8 (patch) | |
| tree | e0a240b842f10dc474bab25e0a95cf5b629bd9ef /clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp | |
| parent | 2dd436390c95423c07f32dea834a4b04a70937e1 (diff) | |
| download | bcm5719-llvm-e1520d66087a47ef8c28dfe57d5cac4de8d6e6a8.tar.gz bcm5719-llvm-e1520d66087a47ef8c28dfe57d5cac4de8d6e6a8.zip | |
Check for unexpanded parameter packs in non-type template parameter types.
llvm-svn: 121964
Diffstat (limited to 'clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp')
| -rw-r--r-- | clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp index 2352234f86c..e277219ca40 100644 --- a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp +++ b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp @@ -141,6 +141,9 @@ struct TestUnexpandedDecls : T{ struct default_template_args_2; template<template<typename> class = Types::template apply> // expected-error{{default argument contains unexpanded parameter pack 'Types'}} struct default_template_args_3; + + template<Types value> // expected-error{{non-type template parameter type contains unexpanded parameter pack 'Types'}} + struct non_type_template_param_type; }; // Test for diagnostics in the presence of multiple unexpanded |

