-O Bug

Axel Krauth krauth at infosun.fmi.uni-passau.de
Sat Dec 9 14:10:33 EST 2000


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
-------------- next part --------------
>main =
>  do
>  _ <- compute "_"
>  return ()
>
>compute :: String -> String
>compute ("hd"++_) = "_"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ghc.out
Type: application/octet-stream
Size: 1943 bytes
Desc: ghc -v
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20001209/c08aa6ce/ghc.obj


More information about the Glasgow-haskell-bugs mailing list