summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-11 18:17:41 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-11 18:17:41 +0000
commit1228123a96c04575789d9cabb27908471deedd05 (patch)
tree7868ad5c6fa9591721d23306b105bfdff706e881
parent052a75e4e9d395e8355958b604f752753df0aebf (diff)
downloadgcc-1228123a96c04575789d9cabb27908471deedd05.tar.gz
2015-07-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58734 * g++.dg/cpp0x/variadic-ttp2.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225713 138bc75d-0d04-0410-961f-82ee72b054a4
-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 af914b59e16..fe6d5e848bd 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 00000000000..508d56ac639
--- /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);
+}