1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// PR c++/47703 typedef void (*pfn)(int &); struct A { operator pfn() { return 0; } }; void f() { const int i = 42; A()(i); // { dg-message "<conversion>" } } // { dg-prune-output "no match" } // { dg-prune-output "candidate" }