This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.2/3.3/3.4 Lookup in Nested Class


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 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]