1 // PR c++/71979
2 // { dg-do compile { target c++11 } }
3 
4 struct A
5 {
6   A & operator= (A &);
7 };
8 
9 struct B : A {};   // { dg-error "cannot bind" }
10 
foo()11 void foo ()
12 {
13   B b;
14   b = B ();  // { dg-error "use of deleted" }
15 }
16