#7233: Int64 division buggy on a 32-bit installation
------------------------------+---------------------------------------------
 Reporter:  lerkok            |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.6.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 This is with GHC 7.4.1, running on Linux, 32 bits:

 {{{
 Prelude> maxBound :: Int
 2147483647
 Prelude> :m Data.Int
 Prelude Data.Int> [5 `div` (minBound+k::Int64) | k <- [0 .. 10]]
 [0,0,1,1,1,-1,-1,-1,-1,-1,-1]
 }}}

 Expected value: Last expression should evaluate to:
 {{{
 [-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7233>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to