#2881: Basic Fibonacci function using Word causes ghci to panic. - 6.10.1
----------------------------------+-----------------------------------------
 Reporter:  axman6                |          Owner:        
     Type:  bug                   |         Status:  new   
 Priority:  normal                |      Milestone:        
Component:  Compiler              |        Version:  6.10.1
 Severity:  normal                |     Resolution:        
 Keywords:  panic Word fibonacci  |       Testcase:        
       Os:  Unknown/Multiple      |   Architecture:  x86   
----------------------------------+-----------------------------------------
Changes (by axman6):

  * summary:  Basif Fibonacci function using Word causes ghci to panic. -
              6.10.1 => Basic Fibonacci function using Word
              causes ghci to panic. - 6.10.1

Comment:

 from #ghc:

 {{{
 14:02 < mmorrow> weird:
 14:02 < mmorrow> ghci> case undefined of (0::Word) -> undefined
 14:02 < mmorrow> panics
 14:02 < mmorrow> but
 14:02 < mmorrow> ghci> case undefined of (0::Word32) -> undefined
 14:02 < mmorrow> *** Exception: Prelude.undefined
 14:02 < mmorrow> (and Word{8,16,32,64} all work)
 14:03 < mmorrow> this works too
 14:03 < mmorrow> case (0::Word) of _ -> undefined
 [and]
 14:03 < mmorrow> case (0::Word) of 0 -> undefined
 14:05 < mmorrow> ghci> case 0 of (0::Word) -> undefined
 14:05 < mmorrow> *** Exception: Prelude.undefined
 14:05 < mmorrow> ghci> case undefined of (0::Word) -> undefined
 14:05 < mmorrow> ghc: panic! (the 'impossible' happened)...
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2881#comment:1>
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