This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java: fix for the Java PR #195
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [PATCH] Java: fix for the Java PR #195
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Mon, 1 May 2000 14:45:28 -0700
- Reply-to: apbianco at redhat dot com
I'm checking in this patch which fixes the Java PR #195:
http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00009.html
./A
2000-04-25 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (register_incomplete_type): Handle JDEP_ANONYMOUS.
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.157
diff -u -p -r1.157 parse.y
--- parse.y 2000/04/25 22:14:53 1.157
+++ parse.y 2000/04/26 06:00:21
@@ -4936,7 +4936,9 @@ register_incomplete_type (kind, wfl, dec
JDEP_WFL (new) = wfl;
JDEP_CHAIN (new) = NULL;
JDEP_MISC (new) = NULL_TREE;
- if ((kind == JDEP_SUPER || kind == JDEP_INTERFACE)
+ /* For some dependencies, set the enclosing class of the current
+ class to be the enclosing context */
+ if ((kind == JDEP_SUPER || kind == JDEP_INTERFACE || kind == JDEP_ANONYMOUS)
&& GET_ENCLOSING_CPC ())
JDEP_ENCLOSING (new) = TREE_VALUE (GET_ENCLOSING_CPC ());
else