logo       

[GHC] #826: Optimization breaks strictness with IO: msg#00053

lang.haskell.glasgow.bugs

Subject: [GHC] #826: Optimization breaks strictness with IO

#826: Optimization breaks strictness with IO
-------------------------------+--------------------------------------------
Reporter: aljee@xxxxxxxx | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.4.2
Severity: minor | Keywords:
Os: Unknown | Difficulty: Unknown
Architecture: Unknown |
-------------------------------+--------------------------------------------
The following program fails with exception when compiled with -O0, but
terminates successfully when compiled with -O.

{{{
module Main(main) where

import Control.Concurrent.MVar

f l =undefined `seq` putStrLn "q"

main = do
mv <- newMVar ()
f () `seq` putStrLn "Hello"
}}}

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/826>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise