parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to java_complete_tree.
authorTom Tromey <tromey@cygnus.com>
Tue, 27 Jun 2000 15:02:48 +0000 (15:02 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 27 Jun 2000 15:02:48 +0000 (15:02 +0000)
* parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to
java_complete_tree.

From-SVN: r34732

gcc/java/ChangeLog
gcc/java/parse.c
gcc/java/parse.y

index f01dcb8..fbd319b 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-26  Tom Tromey  <tromey@cygnus.com>
+
+       * parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to
+       java_complete_tree.
+
 2000-06-25  Tom Tromey  <tromey@cygnus.com>
 
        * parse.y (for_statement): Wrap expression in a WFL if it is a
index 6f859dd..e17372a 100644 (file)
@@ -11450,7 +11450,7 @@ resolve_field_access (qual_wfl, field_decl, field_type)
          && JPRIMITIVE_TYPE_P (TREE_TYPE (decl))
          && DECL_INITIAL (decl))
        {
-         field_ref = java_complete_tree (DECL_INITIAL (decl));
+         field_ref = java_complete_tree (decl);
          static_final_found = 1;
        }
       else
index e26859c..33e9b37 100644 (file)
@@ -8752,7 +8752,7 @@ resolve_field_access (qual_wfl, field_decl, field_type)
          && JPRIMITIVE_TYPE_P (TREE_TYPE (decl))
          && DECL_INITIAL (decl))
        {
-         field_ref = java_complete_tree (DECL_INITIAL (decl));
+         field_ref = java_complete_tree (decl);
          static_final_found = 1;
        }
       else