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
This commit is contained in:
Paolo Carlini 2015-07-11 18:17:41 +00:00 committed by Paolo Carlini
parent 6f9c217af5
commit 4aeb847a75
2 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -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);
}