Debian Codegraph @

gcc/testsuite/g++.dg/lookup/koenig13.C

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