This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java segfault in GCC instead of an error message


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);

}
}
----



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]