Patch: fix PR java/23300
Andrew Haley
aph@redhat.com
Tue Aug 16 16:01:00 GMT 2005
Tom Tromey writes:
> This patch fixes PR java/23300.
>
> The immediate cause of the crash is fixed by the expr.c patch. We
> were generating an otable reference when DECL_FIELD_OFFSET was 0.
> But, it makes no sense to do this, because if !flag_indirect_dispatch,
> we will end up with bogus trees.
>
> The ultimate cause of the bug turned out to be a name resolution
> failure. I fixed this by arranging to pass the class' outer class (if
> any) to do_resolve_class in maybe_layout_super_class.
>
> Tested on x86 FC4, including mauve and jacks. Ok?
>
> Tom
>
> Index: ChangeLog
> from Tom Tromey <tromey@redhat.com>
>
> PR java/23300.
> * expr.c (build_field_ref): Don't generate otable reference when
> DECL_FIELD_OFFSET is 0.
> * class.c (maybe_layout_super_class): Pass outer class to
> do_resolve_class.
OK.
Andrew.
More information about the Java-patches
mailing list