#826: Optimization breaks strictness with IO
-------------------------------+--------------------------------------------
    Reporter:  [EMAIL PROTECTED]  |        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@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to