diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2015-07-11 18:17:41 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2015-07-11 18:17:41 +0000 |
commit | 4aeb847a75e2cdcb0d3960819cdf6a19d2eff918 (patch) | |
tree | 7868ad5c6fa9591721d23306b105bfdff706e881 /gcc | |
parent | 6f9c217af52c2e1f0a510b6aa00b9e916e244d00 (diff) | |
download | gcc-4aeb847a75e2cdcb0d3960819cdf6a19d2eff918.zip gcc-4aeb847a75e2cdcb0d3960819cdf6a19d2eff918.tar.gz gcc-4aeb847a75e2cdcb0d3960819cdf6a19d2eff918.tar.bz2 |
re PR c++/58734 ([C++11] Template template parameter pack instantiation problem)
2015-07-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58734
* g++.dg/cpp0x/variadic-ttp2.C: New.
From-SVN: r225713
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic-ttp2.C | 22 |
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); +} |