[GHC] #10245: panic in new integer switch logic with "out-of-range" literals
GHC
ghc-devs at haskell.org
Mon Nov 20 18:48:19 UTC 2017
#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#L76
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
More information about the ghc-tickets
mailing list