blob: 00f8b4920e17cff714884ee6b13fdcf17d8aec9c [file] [log] [blame]
// P0846R0
// { dg-do compile }
struct A { };
bool operator <(void (*fp)(), A) { return false; }
void f() {}
int
main ()
{
A a;
f < a; // { dg-error "invalid" "" { target c++2a } }
bool b = f < a; // { dg-error "invalid" "" { target c++2a } }
(f) < a;
}