#8072: Optimizations change result of div for Word -------------------------------------+--------------------------- Reporter: Khudyakov | Owner: Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: x86 Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 3676 -------------------------------------+--------------------------- Changes (by igloo): * status: new => closed * resolution: => fixed Comment: Thanks for the report, and to int-e for finding the problem. Fixed by: commit af77ef45d576fddb25acf28beb434ef431f430a0 {{{ Author: Ian Lynagh <ian@well-typed.com> Date: Sun Jul 21 19:09:45 2013 +0100 Fix GHC.Enum on 32bit platforms; fixes #8072 Diagnosed by int-e. MachDeps.h wasn't being included in Enum.lhs, and the old WORD_SIZE_IN_BITS test didn't fail when WORD_SIZE_IN_BITS isn't defined. Now we get an error instead. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8072#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler