Ticket #2881 (closed bug: fixed)
Basic Fibonacci function using Word causes ghci to panic. - 6.10.1
| Reported by: | axman6 | Owned by: | simonmar |
|---|---|---|---|
| Priority: | low | Milestone: | 6.12 branch |
| Component: | GHCi | Version: | 6.10.1 |
| Keywords: | panic Word fibonacci | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Easy (less than 1 hour) | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
