blob: e5500cbea8b3c6a0c4ce583531a715e5d8342f23 [file] [log] [blame]
// To find function pointers in Koenig lookup is ok as long as we only find one.
namespace A{
void foo(); // ERROR -
struct X{};
void (*bar)(X*)=0;
}
using A::X;
void (*foo)(X*)=0; // ERROR -
void g()
{
foo(new X); // ERROR - both objects and functions found
bar(new X); // ok
}