Commit 70541f45 by Tom Tromey Committed by Tom Tromey

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
parent 6ef67412
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> 2000-06-25 Tom Tromey <tromey@cygnus.com>
* parse.y (for_statement): Wrap expression in a WFL if it is a * parse.y (for_statement): Wrap expression in a WFL if it is a
......
...@@ -11450,7 +11450,7 @@ resolve_field_access (qual_wfl, field_decl, field_type) ...@@ -11450,7 +11450,7 @@ resolve_field_access (qual_wfl, field_decl, field_type)
&& JPRIMITIVE_TYPE_P (TREE_TYPE (decl)) && JPRIMITIVE_TYPE_P (TREE_TYPE (decl))
&& DECL_INITIAL (decl)) && DECL_INITIAL (decl))
{ {
field_ref = java_complete_tree (DECL_INITIAL (decl)); field_ref = java_complete_tree (decl);
static_final_found = 1; static_final_found = 1;
} }
else else
......
...@@ -8752,7 +8752,7 @@ resolve_field_access (qual_wfl, field_decl, field_type) ...@@ -8752,7 +8752,7 @@ resolve_field_access (qual_wfl, field_decl, field_type)
&& JPRIMITIVE_TYPE_P (TREE_TYPE (decl)) && JPRIMITIVE_TYPE_P (TREE_TYPE (decl))
&& DECL_INITIAL (decl)) && DECL_INITIAL (decl))
{ {
field_ref = java_complete_tree (DECL_INITIAL (decl)); field_ref = java_complete_tree (decl);
static_final_found = 1; static_final_found = 1;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment