This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/15719] New: GIJ Interpeter: Problem with NaN / infinity comparisons
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2004 00:59:49 -0000
- Subject: [Bug libgcj/15719] New: GIJ Interpeter: Problem with NaN / infinity comparisons
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following test case produces the wrong result when compiled to bytecode and
run with the gij interpreter.
public class Test
{
public static void main(String[] args)
{
System.out.println(blah(Double.NaN));
}
static boolean blah(double a)
{
return (a < Double.POSITIVE_INFINITY);
}
}
Expected output:
false
Actual output:
true
--
Summary: GIJ Interpeter: Problem with NaN / infinity comparisons
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckinlay at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15719