OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / koenig9.C
1 // Test for sensible handling of template-ids with arg-dep lookup.
2 // This is still an open issue.
3
4 namespace N
5 {
6   struct A { };
7   void f(void (*)(int, N::A));
8 }
9
10 namespace M
11 {
12   struct B { };
13   void f(void (*)(B, N::A));
14 }
15
16 template <class T>
17 void g(T, N::A);
18
19 void g();
20
21 int main()
22 {
23   f(g<int>);
24   f(g<M::B>);
25 }