id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
6155	"-C causes panic ""the impossible happened"""	Basti		"
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."	bug	closed	normal		Compiler	7.4.1	fixed	panic, impossible, eden		Linux	x86	Compile-time crash	Unknown	(any)			
