Ticket #5603 (closed bug: fixed)
Impossible case alternative
| Reported by: | igloo | Owned by: | simonpj |
|---|---|---|---|
| Priority: | highest | Milestone: | 7.4.1 |
| Component: | Compiler | Version: | 7.3 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | simplCore/should_run/T5603 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
With q.hs:
{-# LANGUAGE MagicHash, UnboxedTuples, UnliftedFFITypes #-}
module Main (main) where
import GHC.Base
import GHC.Integer.GMP.Internals
main :: IO ()
main = (encodeDouble 0 :: Double) `seq` return ()
{-# INLINE encodeDouble #-}
encodeDouble :: Integer -> Double
encodeDouble (S# _) = D# 3.0##
encodeDouble (J# _ _) = D# 4.0##
with the HEAD I get:
$ ghc --make q -O -dcore-lint -dcmm-lint [1 of 1] Compiling Main ( q.hs, q.o ) Linking q ... $ ./q q: Impossible case alternative
Change History
Note: See
TracTickets for help on using
tickets.
