class C { template operator U(); }; int fn (C c) { return C::operator float(c); // { dg-error "operator U" } }