1 // Core Issue #1331 (const mismatch with defaulted copy constructor)
2 // { dg-do compile { target c++11 } }
10 template<typename T> struct W
13 W& operator=(const W&) = default; // { dg-error "binding" }
14 // { dg-error "implicitly deleted" "" { target c++17_down } .-1 }
22 w1 = w2; // { dg-error "use of deleted function" }