blob: d3096192bfa2f9a7ee0befca31cb3ba5d184a9cc [file] [log] [blame]
// 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-error "qualifiers" "" { target *-*-* } .-1 }
}
// { dg-prune-output "no match" }