aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lookup/koenig13.C
blob: 625a181f6214a7a529439e5a3c59a92dc518ed36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/42687
// DR 705

namespace N
{
    struct S { };
    void f(const S &) { }
}

void f(const N::S &) { }

int main()
{
    N::S v;
    (f)(v); // no ambiguity: ADL is prevented with (), only ::f is considered
}