#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 benl@…):

 commit 657773c8e59917fda05ee08065ec566aebb50a5f
 {{{
 Author: Ben Lippmeier <[email protected]>
 Date:   Tue Nov 29 16:38:33 2011 +1100

     Fix #5658: mark all array indexing primops as can_fail

     If they're not marked as can_fail, then they are floated out of case
 expressions that check whether the indices are in-bounds, causing immense
 suffering.

  compiler/prelude/primops.txt.pp |  112
 +++++++++++++++++++++++++++++++++++++-
  1 files changed, 109 insertions(+), 3 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5658#comment:3>
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