Commit 96c6f628 by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

re PR java/2333 (ICE in mark_reference_fields)

2001-03-21  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* class.c (layout_class): Fixed push_super_field's second
	argument. Fixes PR java/2333.
	(jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's
	too early to lay innerclasses out.

(http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01582.html)

From-SVN: r40719
parent 71cb9286
2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com>
* class.c (layout_class): Fixed push_super_field's second
argument. Fixes PR java/2333.
(jdep_resolve_class): Reset TYPE_SIZE if `error_mark_node', it's
too early to lay innerclasses out.
2001-03-20 Tom Tromey <tromey@redhat.com>
* lex.c (java_read_unicode): Only accept leading `u's.
......
......@@ -1693,7 +1693,7 @@ layout_class (this_class)
return;
}
if (TYPE_SIZE (this_class) == NULL_TREE)
push_super_field (this_class, super_class);
push_super_field (this_class, maybe_super_class);
}
for (field = TYPE_FIELDS (this_class);
......
......@@ -5277,7 +5277,11 @@ jdep_resolve_class (dep)
{
tree inner = TREE_TYPE (decl);
if (! CLASS_LOADED_P (inner))
{
safe_layout_class (inner);
if (TYPE_SIZE (inner) == error_mark_node)
TYPE_SIZE (inner) = NULL_TREE;
}
check_inner_class_access (decl, JDEP_ENCLOSING (dep), JDEP_WFL (dep));
}
return decl;
......
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