This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.2/3.3/3.4 Lookup in Nested Class
- From: Jeffrey Oldham <oldham at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>, "gcc-patches at gcc dot gnu dot org"<gcc-patches at gcc dot gnu dot org>, "pfeifer at dbai dot tuwien dot ac dot at"<pfeifer at dbai dot tuwien dot ac dot at>
- Date: Tue, 28 Jan 2003 12:14:59 -0800
- Subject: Re: 3.2/3.3/3.4 Lookup in Nested Class
- Organization: CodeSourcery, LLC
- References: <77440000.1043782396@warlock.codesourcery.com>
Mark Mitchell wrote:
--On Tuesday, January 28, 2003 08:24:55 PM +0100 Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
| > | Index: g++.old-deja/g++.other/lookup24.C
| > Ideally, new testcases should go in g++.dg.
This was my fault; I approved the patch. I didn't look at the test
case carefully enough.
Jeffrey, would you please move the test case on the mainline? (I think
on the other branches it's not worth the trouble.)
Done by moving from g++.old-deja/g++.other/lookup24.C to
g++.dg/lookup/nested1.C on the head.
Approved by Mark Mitchell
Applied to head
Thanks,
Jeffrey D. Oldham
oldham@codesourcery.com
? pr_cxx_47-28Jan.patch
? pr_cxx_47-3_4.ChangeLog
? pr_cxx_47-3_4.patch
Index: g++.dg/lookup/nested1.C
===================================================================
RCS file: g++.dg/lookup/nested1.C
diff -N g++.dg/lookup/nested1.C
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- g++.dg/lookup/nested1.C 28 Jan 2003 20:09:03 -0000
***************
*** 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();
+ };
Index: g++.old-deja/g++.other/lookup24.C
===================================================================
RCS file: g++.old-deja/g++.other/lookup24.C
diff -N g++.old-deja/g++.other/lookup24.C
*** g++.old-deja/g++.other/lookup24.C 28 Jan 2003 03:26:00 -0000 1.2
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 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();
- };
--- 0 ----