1 // { dg-do link { target c++11 } }
2 
3 struct X { X(X &&); };
4 struct A {
AA5   A() {}
6   A(const A&);       // #1
7   A(A &&) = default; // #2, defined as deleted (12.8 [class.copy])
8   template<typename T> A(T &&);	// #3
9   union { X x; };
10 };
11 struct B : A {
12   using A::A;
BB13   B(...) {}
14 };
15 
main()16 int main() {
17   B b = A(); // calls B::B(...): #1, #2, and #3 are excluded from candidate set
18 }
19