From: Jeffrey D. Oldham Date: Tue, 28 Jan 2003 03:26:00 +0000 (+0000) Subject: re PR c++/47 (nested classes broken) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=623baee2cff4707d6453d3ebccd7a5959f6566d2;p=gcc.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: r61950 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 467fcca27f6..34d32f4e9c5 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-27 Kaveh R. Ghazi 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 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 . +// +// 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(); +};