]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/47 (nested classes broken)
authorJeffrey D. Oldham <oldham@codesourcery.com>
Tue, 28 Jan 2003 03:21:09 +0000 (03:21 +0000)
committerJeffrey D. Oldham <oldham@gcc.gnu.org>
Tue, 28 Jan 2003 03:21:09 +0000 (03:21 +0000)
2003-01-27  Jeffrey D. Oldham  <oldham@codesourcery.com>

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

From-SVN: r61947

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

index 66bd8a1eb2f6443217ffafac6d702ba91eb850e4..e5aa3405bfe8ef3d222f9f2e7b8698f4142ef867 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-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.c-torture/execute/20030125-1.c: Remove.
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();
+};