// PR c++/69851 // { dg-do compile } // { dg-options "-std=c++11" } template struct A { T a; }; template struct B; template struct B : B<1, U...>, A { B (B &) = default; B (B &&x) : B(x) {} }; template struct B {}; struct C { C (C &); }; struct D {}; void foo (B<0, C, D, int, int> a) { B<0, C, D, int, int> b (a); }