#1124: Panic! The impossible happened: initC srt
-------------------------+--------------------------------------------------
    Reporter:  guest     |       Owner:       
        Type:  bug       |      Status:  new  
    Priority:  normal    |   Milestone:       
   Component:  Compiler  |     Version:  6.7  
    Severity:  blocker   |    Keywords:       
  Difficulty:  Unknown   |    Testcase:       
Architecture:  x86       |          Os:  Linux
-------------------------+--------------------------------------------------
Hallo,

 while compiling this abbreviated program:
 {{{
 {-# OPTIONS_GHC -farrows -fno-monomorphism-restriction -fglasgow-exts #-}
 module Main where
 import Control.Arrow

 data Pair a b = a :# b

 main = undefined

 counter =
   proc x ->
     do t :# _ <- undefined -< x
        rec (cnt:: Int) <- undefined -< undefined
            undefined -< show cnt
        returnA -< undefined
 }}}

 the following error occurs:
 {{{
 > ghc --make play.hs

 [1 of 1] Compiling Main             ( play.hs, play.o )
 ghc-6.7: panic! (the 'impossible' happened)
   (GHC version 6.7 for i386-unknown-linux):
         initC: srt
 }}}
 Version infos:
 {{{
 > gcc -v
 Using built-in specs.
 Target: i486-linux-gnu
 Configured with: ../src/configure -v --enable-
 languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-
 shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
 --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-
 __cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
 --enable-checking=release i486-linux-gnu
 Thread model: posix
 gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

 > ghc -V
 The Glorious Glasgow Haskell Compilation System, version 6.7
 }}}
 GHC was build using the repositories from 10 January 2007.

 This error seems to be very sensitive to details, I had a hard time
 condensing the error to the program above. Using flags like -O, -fvia-C
 didn't help.

 You can reach me for questions and help via e-mail: [EMAIL PROTECTED]

 Cheers,
     Harald Holtmann

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