1 // PR c++/42687
2 // DR 705
3 
4 namespace N
5 {
6     struct S { };
f(const S &)7     void f(const S &) { }
8 }
9 
f(const N::S &)10 void f(const N::S &) { }
11 
main()12 int main()
13 {
14     N::S v;
15     (f)(v); // no ambiguity: ADL is prevented with (), only ::f is considered
16 }
17