From: Jeffrey D. Oldham Date: Tue, 28 Jan 2003 03:21:09 +0000 (+0000) Subject: re PR c++/47 (nested classes broken) X-Git-Tag: releases/gcc-3.2.2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f6eae89d0c19adb0d2c4b8622ef3fe35756aaf7;p=thirdparty%2Fgcc.git re PR c++/47 (nested classes broken) 2003-01-27 Jeffrey D. Oldham PR c++/47 * g++.old-deja/g++.other/lookup24.C: New test. From-SVN: r61947 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 66bd8a1eb2f6..e5aa3405bfe8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-01-27 Jeffrey D. Oldham + + PR c++/47 + * g++.old-deja/g++.other/lookup24.C: New test. + 2003-01-25 Eric Botcazou * 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 index 000000000000..c8988e278d11 --- /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 . +// +// 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(); +};