re PR c++/47 (nested classes broken)
authorJeffrey D. Oldham <oldham@codesourcery.com>
Tue, 28 Jan 2003 03:26:00 +0000 (03:26 +0000)
committerJeffrey D. Oldham <oldham@gcc.gnu.org>
Tue, 28 Jan 2003 03:26:00 +0000 (03:26 +0000)
2003-01-27  Jeffrey D. Oldham  <oldham@codesourcery.com>

PR c++/47
* g++.old-deja/g++.other/lookup24.C: New test.

From-SVN: r61950

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/lookup24.C [new file with mode: 0644]

index 467fcca27f663c8e6eb8aa035ac8f3304aa83ef3..34d32f4e9c5a0b4baacac30e76c73dfac18e34bc 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-27  Jeffrey D. Oldham  <oldham@codesourcery.com>
+
+       PR c++/47
+       * g++.old-deja/g++.other/lookup24.C: New test.
+
 2003-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        PR middle-end/7227
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 (file)
index 0000000..c8988e2
--- /dev/null
@@ -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();
+};