re PR java/25366 (ICE in do_resolve_class)

2005-12-13  Andrew Haley  <aph@redhat.com>

        PR java/25366
        PR java/25368
        * class.c (maybe_layout_super_class): Update current_class before
        calling do_resolve_class.

From-SVN: r108474
This commit is contained in:
Andrew Haley 2005-12-13 09:41:45 +00:00 committed by Andrew Haley
parent 78fdb6d283
commit 65260edb31
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2005-12-13 Andrew Haley <aph@redhat.com>
PR java/25366
PR java/25368
* class.c (maybe_layout_super_class): Update current_class before
calling do_resolve_class.
2005-12-12 H.J. Lu <hongjiu.lu@intel.com>
PR java/25330

View File

@ -2085,6 +2085,9 @@ maybe_layout_super_class (tree super_class, tree this_class)
we give it one. */
tree this_wrap = NULL_TREE;
/* Set the correct context for class resolution. */
current_class = this_class;
if (this_class)
{
tree this_decl = TYPE_NAME (this_class);