aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr31442.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr31442.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr31442.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr31442.C b/gcc/testsuite/g++.dg/cpp0x/pr31442.C
new file mode 100644
index 00000000000..050e2999566
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr31442.C
@@ -0,0 +1,9 @@
+// { dg-options "-std=gnu++0x" }
+template<typename... T, T = 0> struct A {}; // { dg-error "parameter packs|T|the end" }
+
+struct B
+{
+ template <template <typename...> class C> B(C<int>);
+};
+
+B b = A<int>();