]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/variadic124.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic124.C
CommitLineData
f9057514 1// PR c++/52292
4b2e63de 2// { dg-do compile { target c++11 } }
f9057514
JM
3
4template <template <typename...> class T>
5struct foo {
6 template <typename... U>
7 foo(T<U...> x) { }
8};
9
10template <typename T>
11struct bar {
12 bar(T x) : value(x) { }
13
14 T value;
15};
16
17struct generic : private foo<bar> {
18 template <typename T>
19 generic(bar<T> x) : foo(x)
20 {
21 }
22
23};
24
25int main()
26{
27 bar<int> x(32);
28 generic y(x); // FAILS
29}
This page took 5.556056 seconds and 5 git commands to generate.