-C causes panic "the impossible happened"
- Intent
To find out where a segfault arises, maybe by adding debbuging symbols.
- Method
Compile the program with the flag -C, which should stop the compiler/linker program after the "Generate C" Phase.
- Expected result
Compiler generates a file .hc which contains C code
- 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
$
- 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 |