2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / nested1.C
blobc8988e278d11881b11b0210af9ac193dc3107b1e
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.
9 class A {
10 public:
11   class B;
12   class C;
15 class A::B {
18 class A::C {
19   class D;
22 class A::C::D {
23 public:
24   B* foo();