int cast bug
Andrew Haley
aph@redhat.com
Sat May 31 23:53:00 GMT 2003
Lars Andersen writes:
>
> Using gcc3.3 on linux, I get a :
>
> internal compiler error: Segmentation fault
>
> when I compile a java file containing something like :
>
> >>>>>>>>>>
>
> private static final int foo = 100;
> private static final int bar = (int)((double) foo * 0.9);
>
> <<<<<<<<<<
>
> Compiling the same file without this int-double casting works with gcj.
> The java class compile with sun jdk 1.4.
>
> Is this a bug, and if so, is it known?
It's definitely a bug, and I haven't seen it before. Please submit
this bug to http://gcc.gnu.org/bugzilla/enter_bug.cgi.......
Thanks,
Andrew.
More information about the Java
mailing list