[GHC] #8695: Arithmetic overflow from (minBound :: Int) `quot` (-1)

GHC ghc-devs at haskell.org
Tue Jun 2 20:50:15 UTC 2015


#8695: Arithmetic overflow from (minBound :: Int) `quot` (-1)
-------------------------------------+-------------------------------------
        Reporter:  rleslie           |                   Owner:
            Type:  feature request   |                  Status:  closed
        Priority:  normal            |               Milestone:  7.12.1
       Component:  Core Libraries    |                 Version:  7.6.3
      Resolution:  wontfix           |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #1042             |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by rleslie):

 Sorry to hear that.

 Can we correct the documentation then, to acknowledge this exception to
 the claim that “All arithmetic is performed modulo 2!^n” if that’s not
 going to be the case?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8695#comment:36>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list