#5658: Strict bindings are wrongly floated out of case alternatives.
---------------------------------+------------------------------------------
    Reporter:  benl              |        Owner:  benl         
        Type:  bug               |       Status:  new          
    Priority:  normal            |    Milestone:               
   Component:  Compiler          |      Version:  7.2.1        
    Keywords:                    |     Testcase:               
   Blockedby:                    |   Difficulty:               
          Os:  Unknown/Multiple  |     Blocking:               
Architecture:  Unknown/Multiple  |      Failure:  Runtime crash
---------------------------------+------------------------------------------

Comment(by simonmar):

 I think we only need to mark the `indexBlahArray#` operations with
 `can_fail`, the `readBlahArray#` and `writeBlahArray#` are already fine:
 they are already marked as having side effects, so they will never be
 evaluated when they shouldn't be.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5658#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

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

Reply via email to