Skip to content

-C causes panic "the impossible happened"

  1. Intent

To find out where a segfault arises, maybe by adding debbuging symbols.

  1. Method

Compile the program with the flag -C, which should stop the compiler/linker program after the "Generate C" Phase.

  1. Expected result

Compiler generates a file .hc which contains C code

  1. Actual result

$ ghc-7.4.1.20120416 -C edentest.hs

addFlag by -C on the commandline:

Warning: The -fvia-C flag does nothing; it will be removed in a future GHC release

ghc: panic! (the 'impossible' happened)

(GHC version 7.4.1.20120416 for i386-unknown-linux):

pipeLoop: at phase As but I wanted to stop at phase HCc

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

$

  1. Further Information

The Compiler used is a patched ("Eden") 7.4.1.20120416. It fails this way with any compilable file I could try.

Trac metadata
Trac field Value
Version 7.4.1
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