This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
int cast bug
- From: Andrew Haley <aph at redhat dot com>
- To: Lars Andersen <lars at rimfaxe dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 31 May 2003 13:29:50 +0100
- Subject: int cast bug
- References: <1054321098.5824.5.camel@lamanote.rimfaxe.com>
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.