Skip to content

ghc: panic! (the 'impossible' happened)

I'm not sure *why* this is happening, but I know where. The code for this library is available here: http://hub.darcs.net/alex404/hsl-random

So as is, I can run the script called multivariate and get the expected results, but when I try to compile I get

ghc: panic! (the 'impossible' happened)

(GHC version 7.8.2 for x86_64-unknown-linux):

attempt to prod-split usage call demand C(C1(U(U,U,U,U,U,U)))

If at line 317 in Scientific.Random.Distributions.hs, I replace the statement sgma = ... with sgma = undefined, the code will compile, though obviously it cannot be used. If I transform the code in other ways which are meant to preserve the results, I can get it to compile, but then the script hangs.

Trac metadata
Trac field Value
Version 7.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information