#5300: Infinite context reduction stack overflow
------------------------------------------+---------------------------------
  Reporter:  dsf                          |          Owner:                  
      Type:  bug                          |         Status:  closed          
  Priority:  normal                       |      Milestone:                  
 Component:  Compiler                     |        Version:  7.0.3           
Resolution:  fixed                        |       Keywords:                  
  Testcase:  typecheck/should_fail/T5300  |      Blockedby:                  
Difficulty:                               |             Os:  Unknown/Multiple
  Blocking:                               |   Architecture:  Unknown/Multiple
   Failure:  Compile-time crash           |  
------------------------------------------+---------------------------------
Changes (by simonpj):

  * status:  new => closed
  * testcase:  => typecheck/should_fail/T5300
  * resolution:  => fixed


Comment:

 The HEAD (upcoming 7.2) gives
 {{{
 T5300.hs:15:9:
     Ambiguous type variable `c0' in the constraint:
       (C1 a1 b2 c0) arising from a use of `f1'
     Probable fix: add a type signature that fixes these type variable(s)
     In the first argument of `(>>=)', namely `f1 fm'
     In the expression: f1 fm >>= return . undefined
     In an equation for `f2': f2 fm = f1 fm >>= return . undefined
 }}}
 which seems right. So I think this one is fixed. I'll add it as a
 regression test though.  Thanks.

 Simon

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