Thanks for this bug report.

I've fixed this in 4.08 (Simon: only in your source tree).  It turns
out that the HEAD doesn't have the problem.

Simon

| -----Original Message-----
| From: Axel Krauth [mailto:[EMAIL PROTECTED]]
| Sent: 09 December 2000 19:11
| To: [EMAIL PROTECTED]
| Subject: -O Bug
| 
| 
| Hi!
| 
| Compiling the program
| 
| >main =
| >  do
| >  _ <- compute "_"
| >  return ()
| >
| >compute :: String -> String
| >compute ("hd"++_) = "_"
| 
| with 
| 
| ghc -c Bug.lhs
| 
| results in the obvious errors
| but compiling with
| 
| ghc -O -c Bug.lhs
| 
| rather results in
| 
| <<loop>>
| 
| which looks to me like a bug in ghc.
| I tried this with
| ghc 4.08,4.08.1 and egcs 1.1.2 on solaris and linux
| 
| bye,
| Axel
| 

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to