Changes between Initial Version and Version 1 of Ticket #2814


Ignore:
Timestamp:
Nov 26, 2008 9:20:45 AM (5 years ago)
Author:
simonpj
Comment:

Ah! This is a known bug: it's even in the user manual: http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs.html#bugs-ghc. It arises when you encode recursion using a data type:

data V = Fun (V -> V)

As the manual says, we've never fixed it because it's quite tricky and awkward to do so, and it only ever shows up in non-contrived programs. I guess if it happens in a "real" program we'll have to pay more attention.

For the moment I'll mark this "wont-fix" but yell if this programming idiom is truly useful to you in real programs.

Simon

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2814

    • Property Status changed from new to closed
    • Property Difficulty changed from to Unknown
    • Property Resolution changed from to wontfix
  • Ticket #2814 – Description

    initial v1  
    11Compiler times out and consumes 600+ MB of memory when compiling certain code. Previously reported this bug by email (was not registered). It was a more complicated version of this same thing and was in version 6.6. The first attached file is simplest I could make which still causes the problem. The second file is the original which when ran should reverse its input. 
    2  
     2{{{ 
    33% ghc --version 
    44The Glorious Glasgow Haskell Compilation System, version 6.10.1 
     
    66[1 of 1] Compiling Main             ( test2.hs, test2.o ) 
    77<does not terminate> 
     8}}}