summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-03 20:35:03 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-03 20:35:03 +0000
commit1440693c50504e7f387cb1958bac48770a7f37f8 (patch)
tree729f813bd97cb8ab7b041c4737029e752032e6e0 /clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
parent0db031d532f4e148a5c83c376116d7255d04eac6 (diff)
downloadbcm5719-llvm-1440693c50504e7f387cb1958bac48770a7f37f8.tar.gz
bcm5719-llvm-1440693c50504e7f387cb1958bac48770a7f37f8.zip
Diagnose the presence of unexpanded parameter packs within class
template partial specialization arguments. llvm-svn: 122769
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.cpp8
1 files changed, 4 insertions, 4 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 47581fee90a..d52d9c52a41 100644
--- a/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
+++ b/clang/test/CXX/temp/temp.decls/temp.variadic/p5.cpp
@@ -211,10 +211,10 @@ struct TestUnexpandedDecls : T{
// FIXME: Test for unexpanded parameter packs in each of the statements.
-// FIXME: Once we have template argument deduction, we can test
-// unexpanded parameter packs in partial specializations.
-// template<typename ...Types>
-// struct TestUnexpandedDecls<int, Types>;
+// Test unexpanded parameter packs in partial specializations.
+
+template<typename ...Types>
+struct TestUnexpandedDecls<int, Types>; // expected-error{{partial specialization contains unexpanded parameter pack 'Types'}}
// Test for diagnostics in the presence of multiple unexpanded
// parameter packs.
OpenPOWER on IntegriCloud