
#10245: panic in new integer switch logic with "out-of-range" literals -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 7.11 (CodeGen) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 Type of failure: Incorrect result | (amd64) at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by AndreasK): * cc: AndreasK (added) * status: closed => new * resolution: fixed => * failure: Compile-time crash => Incorrect result at runtime Comment: In MatchLit [https://ghc.haskell.org/trac/ghc/browser/ghc/compiler/deSugar/MatchLit.hs#L7... dsLit] doesn't use the `mkMachInt` functions resulting in potentially faulty code. `y = I# 0x8000000000000000# :: Int` compiles without warning with -Wall for example. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10245#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler