aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/lookup24.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/lookup24.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/lookup24.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup24.C b/gcc/testsuite/g++.old-deja/g++.other/lookup24.C
new file mode 100644
index 00000000000..c8988e278d1
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/lookup24.C
@@ -0,0 +1,25 @@
+// Build don't link:
+//
+// Copyright (C) 2003 Free Software Foundation, Inc.
+// Contributed by Raymond <raymond@magma.magma-da.com>.
+//
+// PR c++/47 The parser failed to resolve 'B' in the return type of
+// A::C::D::foo.
+
+class A {
+public:
+ class B;
+ class C;
+};
+
+class A::B {
+};
+
+class A::C {
+ class D;
+};
+
+class A::C::D {
+public:
+ B* foo();
+};