#5742: compiler option -XDoRec crash
--------------------------------+-------------------------------------------
 Reporter:  Huenniger           |          Owner:                            
     Type:  bug                 |         Status:  new                       
 Priority:  normal              |      Component:  Compiler                  
  Version:  7.2.1               |       Keywords:  frisby recusive do -XDoRec
       Os:  Unknown/Multiple    |   Architecture:  x86                       
  Failure:  Compile-time crash  |       Testcase:                            
Blockedby:                      |       Blocking:                            
  Related:                      |  
--------------------------------+-------------------------------------------

Comment(by Huenniger):

 I could work around this problem by using mfix instead of do rec.
 The reason for the error seems to be

 Grammer.hs:580:14:
    A 570-tuple is too large for GHC
      (max size is 62)
      Workaround: use nested tuples or define a data type

 So yeah the do rec expression needs to be converted to a mfix expression
 and that needs a tuple with 580 elements which can not be used in ghc.
 Still what needs to be done is to give a proper error message in this case
 instead of just producing a linking error.

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