blob: d69c6f912c92cead1dd8501d60133631a072f3f5 [file] [log] [blame]
// PR c++/52292
// { dg-do compile { target c++11 } }
template <template <typename...> class T>
struct foo {
template <typename... U>
foo(T<U...> x) { }
};
template <typename T>
struct bar {
bar(T x) : value(x) { }
T value;
};
struct generic : private foo<bar> {
template <typename T>
generic(bar<T> x) : foo(x)
{
}
};
int main()
{
bar<int> x(32);
generic y(x); // FAILS
}