#6155: -C causes panic "the impossible happened"
--------------------------------+-------------------------------------------
 Reporter:  Basti               |          Owner:                         
     Type:  bug                 |         Status:  new                    
 Priority:  normal              |      Component:  Compiler               
  Version:  7.4.1               |       Keywords:  panic, impossible, eden
       Os:  Linux               |   Architecture:  x86                    
  Failure:  Compile-time crash  |       Testcase:  (any)                  
Blockedby:                      |       Blocking:                         
  Related:                      |  
--------------------------------+-------------------------------------------
 1. Intent

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

 2. Method

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

 3. Expected result

 Compiler generates a file .hc which contains C code

 4. 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

 $

 5. Further Information

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

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