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]

[PATCH] Java minor patch.


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

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