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]
Other format: [Raw text]

[Bug libgcj/15719] New: GIJ Interpeter: Problem with NaN / infinity comparisons


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


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