#3053: Modular arithmetic bug?
--------------------+-------------------------------------------------------
Reporter:  vlaad    |          Owner:          
    Type:  bug      |         Status:  new     
Priority:  normal   |      Component:  Compiler
 Version:  6.10.1   |       Severity:  critical
Keywords:           |       Testcase:          
      Os:  Windows  |   Architecture:  x86     
--------------------+-------------------------------------------------------
 GHC dies here (please note the x < 200 limit):
  take 15 [x | x <- [1..], x < 200, x `mod` 6 == 1, x `mod` 6 == 5]

 And here (nothing with infix notation):
  take 15 [x | x <- [1..], x < 200, mod x 6 == 1, mod x 6 == 5]

 But *not* here:
  take 15 [x | x <- [1..], mod x 6 == 1, x < 200, x > 100]

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3053>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to