// PR c++/49058 // This error is not subject to SFINAE because it doesn't happen in the // deduction context. // { dg-options -std=c++0x } // { dg-prune-output "note" } template T val(); struct F1 { void operator()(); }; template struct Bind { template()( ) )> R f(); template()( ) )> // { dg-error "no match" } R f() const; }; int main() { Bind b; }