This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

int cast bug


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.


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