parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to java_complete_tree.

* parse.y (resolve_field_access): Pass decl, not DECL_INITIAL, to
	java_complete_tree.

From-SVN: r34732
This commit is contained in:
Tom Tromey 2000-06-27 15:02:48 +00:00 committed by Tom Tromey
parent 6ef67412e8
commit 70541f45e9
3 changed files with 7 additions and 2 deletions

View 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

View 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

View 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