java/2333: ICE in mark_reference_fields

jsturm@one-point.com jsturm@one-point.com
Tue Mar 20 20:26:00 GMT 2001


>Number:         2333
>Category:       java
>Synopsis:       ICE in mark_reference_fields
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 20 20:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Sturm
>Release:        gcc version 3.0 20010319 (prerelease)
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
This is a recent regression on the branch discovered while
building Jacl.  I've included a minimal test case
below.

I found that a non-record type is passed to push_super_field,
causing mark_reference_fields to eventually fail because it
expects a specific layout for the dummy field.  The root cause
is perhaps a failed initialization of C.
>How-To-Repeat:
Compile the following code with "gcj -c A.java":

class B {
  int b;
}
class C {
  int c;
}
public class A {
  AI ai;
  class AI extends B {
    CI ci;
  }
  class CI extends C {
  }
}                       
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list