Commit 0650ddf4 by Martin v. Löwis

New test case.

From-SVN: r21140
parent 2644deec
// 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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment