Commit 6573a104 by Bryce McKinlay Committed by Bryce McKinlay

re PR java/15734 (internal compiler error: Segmentation fault)

	PR java/15734
	* expr.c (expand_java_field_op): Ensure that target class for static
	field access has been loaded.

From-SVN: r83720
parent ed7f2369
2004-06-26 Bryce McKinlay <mckinlay@redhat.com> 2004-06-26 Bryce McKinlay <mckinlay@redhat.com>
PR java/15734
* expr.c (expand_java_field_op): Ensure that target class for static
field access has been loaded.
2004-06-26 Bryce McKinlay <mckinlay@redhat.com>
Ranjit Mathew <rmathew@hotmail.com> Ranjit Mathew <rmathew@hotmail.com>
PR java/1207, java/16178 PR java/1207, java/16178
......
...@@ -2375,7 +2375,11 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index) ...@@ -2375,7 +2375,11 @@ expand_java_field_op (int is_static, int is_putting, int field_ref_index)
tree new_value = is_putting ? pop_value (field_type) : NULL_TREE; tree new_value = is_putting ? pop_value (field_type) : NULL_TREE;
tree field_ref; tree field_ref;
int is_error = 0; int is_error = 0;
tree field_decl = lookup_field (&self_type, field_name); tree field_decl;
if (! CLASS_LOADED_P (self_type))
load_class (self_type, 1);
field_decl = lookup_field (&self_type, field_name);
if (field_decl == error_mark_node) if (field_decl == error_mark_node)
{ {
is_error = 1; is_error = 1;
......
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