summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/koenig2.C
blob: be072a4a0ec6c0d9fe245028befb4a61f2ba9697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace nsp_foo {

  struct A {};

  struct foo {};

}

namespace nsp_bar {

  void foo(nsp_foo::A) {}

  template <class T>
  void bar(T t)
  {
    nsp_bar::foo(t); // line 16
  }

}

int main()
{
  nsp_bar::bar(nsp_foo::A());
}