OSDN Git Service

* name-lookup.c (current_decl_namespace): Non-static.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / nested1.C
1 // Build don't link:
2 // 
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Raymond <raymond@magma.magma-da.com>.
5 // 
6 // PR c++/47  The parser failed to resolve 'B' in the return type of
7 // A::C::D::foo.
8
9 class A {
10 public:
11   class B;
12   class C;
13 };
14
15 class A::B {
16 };
17
18 class A::C {
19   class D;
20 };
21
22 class A::C::D {
23 public:
24   B* foo();
25 };