java segfault in GCC instead of an error message

Vladislav Malyshkin mal@mail1.nai.net
Thu Aug 10 06:41:00 GMT 2000


GCC segfault on the following program instad of giving an error message
gcc -O2 -S Y.java
gcc: Internal error: Segmentation fault (program jc1)
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

In the same time if I remove static
public static class UU it compiles OK

gcc --version
2.96
(RedHat 7.0 Public Beta)

---- Y.java
public class Y {
final UU v=new UU();
int u=0;
public static class UU {
protected UU()
{
 Y.this.u=-1;
}
}
public static void main(String [] args)
{
 System.err.println("Y CALLED");
 final Y x=new Y();
 System.err.println(x.u);

}
}
----




More information about the Gcc-bugs mailing list