Hello,

concerning my previous mail:

during compilation with the binary installed version of
ghc-2.07 for Solaris, I got the following message:
-------------------------------------------------------------------------------
*** Pattern-matching error within GHC!

This is a compiler bug; please report it to [EMAIL PROTECTED]

Fail: "nativeGen/MachCode.lhs", line 1024: pattern-matching failed in case
-------------------------------------------------------------------------------
I found the part of the source that caused the error,
it is inside a case expression:

   EInt i          -> i `seq` (TInt SUndef, EInt i)

If one removes "i `seq`" it compiles without errors.
However, the "seq" has been useful for me in debugging,
because I get error messages that contain expressions
that are further evaluated. I'm using this regularly
when developing with hugs. Please tell me if that's
a bad style, and the compiler should give an error
message there.
-------------------------------------------------------------------------------
 Christoph Herrmann
 E-mail:  [EMAIL PROTECTED]
 WWW:     http://brahms.fmi.uni-passau.de/cl/staff/herrmann.html

Reply via email to