[GHC] #1402: panic in GHC when building QuickCheck with optimization

GHC trac at galois.com
Wed Jun 6 10:09:06 EDT 2007


#1402: panic in GHC when building QuickCheck with optimization
-------------------------+--------------------------------------------------
    Reporter:  guest     |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.7    
    Severity:  normal    |   Resolution:         
    Keywords:            |   Difficulty:  Unknown
          Os:  Linux     |     Testcase:         
Architecture:  x86       |  
-------------------------+--------------------------------------------------
Comment (by simonpj):

 Excellent.  I've boiled it down to a 3-line program that crashes the HEAD
 with -O
 {{{
 newtype Gen a = MkGen{ unGen :: Int -> a }

 choose :: Eq a => a -> Gen a
 choose n = MkGen (\r -> n)

 oneof = choose (1::Int)
 }}}
 Need to investigate further, but this is progress.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1402>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list