// PR c++/37006 // { dg-options "-std=c++0x" } template struct A { template bool operator==(const A&) = delete; // { dg-error "deleted function" } operator bool () { return true; } }; int main() { A a1; A a2; if(a1 == a2) {} // { dg-error "used here" } }