-O bug?

2007-10-18 Thread Serge D. Mechveliani
Dear GHC developers, The point (1) below looks like a bug (in all GHC versions!). (1) -O for demo-test. Take (the public) docon-2.10 build it under -O, install, and build also under -O its test program by cd demotest ghc $doconCpOpt -O --make Main Either the latter compilation wi

RE: -O Bug

2000-12-19 Thread Simon Peyton-Jones
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] | S

RE: -O Bug

2000-12-11 Thread Simon Marlow
> 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 > > <> > > which lo

-O Bug

2000-12-09 Thread Axel Krauth
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 <> which looks to me like a bug in ghc. I tried this w