☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
koenig13.C
☽
☼
gcc/testsuite/g++.dg/lookup/koenig13.C
code
plain
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
}