#2881: Basif Fibonacci function using Word causes ghci to panic. - 6.10.1
---------------------------------+------------------------------------------
Reporter:  axman6                |          Owner:          
    Type:  bug                   |         Status:  new     
Priority:  normal                |      Component:  Compiler
 Version:  6.10.1                |       Severity:  normal  
Keywords:  panic Word fibonacci  |       Testcase:          
      Os:  Unknown/Multiple      |   Architecture:  x86     
---------------------------------+------------------------------------------
 When inputting the function:

 {{{
 let fib :: Word -> Word; fib 0 = 1; fib 1 = 1; fib n = l + r where l = fib
 (n-2); r = fib (n-1)
 }}}

 GHCi produces a panic error:

 {{{
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.1 for i386-apple-darwin):
         schemeE(AnnCase).my_discr __word 0
 }}}

 It has been confirmed on both OS X 10.5.5 and linux

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