aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/variadic-ttp2.C22
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index af914b5..fe6d5e8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-11 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58734
+ * g++.dg/cpp0x/variadic-ttp2.C: New.
+
2015-07-10 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/30044
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-ttp2.C b/gcc/testsuite/g++.dg/cpp0x/variadic-ttp2.C
new file mode 100644
index 0000000..508d56a
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/variadic-ttp2.C
@@ -0,0 +1,22 @@
+// PR c++/58734
+// { dg-do compile { target c++11 } }
+
+template <typename R1, typename R2>
+struct W1 { };
+
+template <template <typename, typename> class W>
+struct A { };
+
+template <template <typename, typename> class ...W>
+struct B { };
+
+template <template <typename, typename> class ...W>
+void f(A<W...> &a, B<W...> &b);
+
+void g()
+{
+ A<W1> a;
+ B<W1> b;
+
+ ::f(a, b);
+}