// { dg-do compile { target c++11 } } template struct enable_if {}; template struct enable_if { using type = T; }; template struct is_true { static constexpr bool value = true; }; extern void* enabler; template ::value>::type*& = enabler> class A { public: A() {} template A& operator=( A&& ) { return *this; } }; int main() { A a_i; A a_d; a_i = a_d; // { dg-error "cannot bind" } }