This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Java minor patch.
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Java minor patch.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Wed, 31 May 2000 17:47:54 -0700
- Reply-to: apbianco at redhat dot com
I'm checking this minor Java front-end patch in.
./A
2000-05-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (resolve_field_access): Complete the DECL_INITIAL tree
before using it as the accessed field.
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.171
diff -u -p -r1.171 parse.y
--- parse.y 2000/05/26 18:57:28 1.171
+++ parse.y 2000/06/01 00:08:04
@@ -8606,7 +8606,7 @@ resolve_field_access (qual_wfl, field_de
&& JPRIMITIVE_TYPE_P (TREE_TYPE (decl))
&& DECL_INITIAL (decl))
{
- field_ref = DECL_INITIAL (decl);
+ field_ref = java_complete_tree (DECL_INITIAL (decl));
static_final_found = 1;
}
else