[GHC] #13384: Windows build thinks sqrt (-1) == -1

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect result Unknown/Multiple | at runtime Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- As of 749740f9c3cb25ee95e04a21c1ef73e1bf96afb1, {{{ $ inplace/bin/ghc-stage2 --interactive GHCi, version 8.1.20170306: http://www.haskell.org/ghc/ :? for help Prelude> sqrt (-1) :: Double -1.0 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: highest | Milestone: 8.2.1
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
Ummmm....
{{{
ben@schildmann MINGW64 ~/ghc$ hi.c
#include

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): This is relevant: https://sourceforge.net/p/mingw/bugs/2337/ -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: Phyx- (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Phyx- Type: bug | Status: new Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: (none) => Phyx- Comment: I'll get you a patched version later today. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Phyx- Type: bug | Status: upstream Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => upstream -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Phyx- Type: bug | Status: upstream Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * os: Unknown/Multiple => Windows -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Phyx- Type: bug | Status: patch Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3292 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: upstream => patch * differential: => Phab:D3292 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13384: Windows build thinks sqrt (-1) == -1 -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Phyx- Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Windows | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3292 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed Comment: This should be resolved in 06c8ce449f7c89eeafe4f9a6e8c545272327f528. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13384#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC