summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/temp/temp.param/p9-0x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/temp/temp.param/p9-0x.cpp')
-rw-r--r--clang/test/CXX/temp/temp.param/p9-0x.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.param/p9-0x.cpp b/clang/test/CXX/temp/temp.param/p9-0x.cpp
index 42d1adf2972..1980bc6eaa1 100644
--- a/clang/test/CXX/temp/temp.param/p9-0x.cpp
+++ b/clang/test/CXX/temp/temp.param/p9-0x.cpp
@@ -8,3 +8,7 @@ struct X0;
template<int ...Values = 0> // expected-error{{template parameter pack cannot have a default argument}}
struct X1;
+template<typename T> struct vector;
+
+template<template<class> class ...Templates = vector> // expected-error{{template parameter pack cannot have a default argument}}
+struct X2;
OpenPOWER on IntegriCloud