This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java segfault in GCC instead of an error message
- To: gcc-bugs at gcc dot gnu dot org
- Subject: java segfault in GCC instead of an error message
- From: Vladislav Malyshkin <mal at mail1 dot nai dot net>
- Date: Thu, 10 Aug 2000 09:36:51 -0400
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);
}
}
----