blob: d69c6f912c92cead1dd8501d60133631a072f3f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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
}
|