Just when you thought it's weekend:  :-)
Here's another bug in the upcoming 4.02:

---------- Argl.hs --------------------------------------
import System
main = exitFailure
---------------------------------------------------------
panne@fangatau: > ghc-4.02 Argl.hs -O

panic! (the `impossible' happened):
        IdInfo parse failed exitFailure
                    
/mnt/fangatau1/svens-ghc-test/ghc-4.02/lib/ghc-4.02/imports/std/System.hi:59 
Interface-file parse error; current input = 

Please report it as a compiler bug to [EMAIL PROTECTED]
---------------------------------------------------------

Without -O everything is fine. Just for fun the offending line from
System.hi:

   1 exitFailure :: __forall [a] => PrelIOBase.IO a {-## __A 1 __u \ __a a -> __coerce 
(PrelIOBase.IO a) (\ _115 :: (PrelGHC.State# PrelGHC.RealWorld) -> case __ccall_GC 
exit {__a (PrelGHC.State# PrelGHC.RealWorld -> PrelGHC.Int# -> (# PrelGHC.State# 
PrelGHC.RealWorld #)) _115 1} of wild { (# ds #) -> __coerce (# PrelGHC.State# 
PrelGHC.RealWorld, a #) (PrelException.ioError __a a _108_118_1084) }) ##-} ;

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne

Reply via email to