Bug 2488 - ICE in mark_reference_fields, at java/boehm.c:105
Summary: ICE in mark_reference_fields, at java/boehm.c:105
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andrew Cagney
Depends on:
Blocks: 1839 2188
  Show dependency treegraph
Reported: 2006-03-25 16:50 UTC by Andrew Cagney
Modified: 2006-03-25 17:44 UTC (History)
1 user (show)

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-03-25 16:50:11 UTC
From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26042

This source file, when compiled with gcj produces an ICE:

package x;

class One
    long l;    // no ICE if this is int, not long
    int b;     // no ICE if this line is gone; type doesn't matter

class Two
    class Three extends One { }
    Three three () { return new Three (); }

The assertion failure is due to:

          /* If this reference slot appears to overlay a slot we think
             we already covered, then we are doomed.  */
          if (offset <= *last_view_index)
            abort ();
Comment 1 Andrew Cagney 2006-03-25 16:52:48 UTC
This bug should be closed once there's a testcase in frysk-imports/tests/
Comment 2 Andrew Cagney 2006-03-25 17:33:59 UTC
Index: frysk-imports/tests/ChangeLog
2006-03-25  Andrew Cagney  <cagney@redhat.com>

        * gcc26042/Two.java: New file, from Ben Elliston.
        * Makefile.am (gcc26042/gcj.sh): New target.