1// PR c++/35138
2// { dg-do compile }
3
4namespace N1 { struct A { }; }
5namespace N2 { struct A { }; }
6using namespace N1;
7using namespace N2;
8
9template <typename T> int
10foo (T const &t)
11{
12  return t.A;
13}
14
15struct B
16{
17  int A;
18};
19
20int
21main ()
22{
23  B b;
24  foo (b);
25}
26