
#7866: floor (0/0) :: Int is different with -O0 and -O1 ------------------------------------------------+-------------------------- Reporter: alang9 | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.2 Resolution: invalid | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Incorrect result at runtime | (amd64) Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by bgamari): * status: new => closed * resolution: => invalid Comment: Looking at the report it's not entirely clear how operations on NaN are defined. That being said, the documentation of `RealFloat` is quite clear that many operations on NaN are undefined. In light of this, it makes sense to assume similar behavior in `RealFrac` operations. For this reason, I'm going to close this as not a bug. If someone would like to disagree, feel free to reopen it with an explanation. http://hackage.haskell.org/packages/archive/base/latest/doc/html/Prelude.htm... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7866#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler