repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
nested1.C
blob
c8988e278d11881b11b0210af9ac193dc3107b1e
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
};