Bug 2488

Summary: ICE in mark_reference_fields, at java/boehm.c:105
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal CC: woodzltc
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 1839, 2188    

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.