Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Simon Peyton Jones's avatar
    cec2c71f
    Fix an tricky specialiser loop · cec2c71f
    Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
    Issue #17151 was a very tricky example of a bug in which the
    specialiser accidentally constructs a recurive dictionary,
    so that everything turns into bottom.
    
    I have fixed variants of this bug at least twice before:
    see Note [Avoiding loops].  It was a bit of a struggle
    to isolate the problem, greatly aided by the work that
    Alexey Kuleshevich did in distilling a test case.
    
    Once I'd understood the problem, it was not difficult to fix,
    though it did lead me a bit of refactoring in specImports.
    cec2c71f
    History
    Fix an tricky specialiser loop
    Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
    Issue #17151 was a very tricky example of a bug in which the
    specialiser accidentally constructs a recurive dictionary,
    so that everything turns into bottom.
    
    I have fixed variants of this bug at least twice before:
    see Note [Avoiding loops].  It was a bit of a struggle
    to isolate the problem, greatly aided by the work that
    Alexey Kuleshevich did in distilling a test case.
    
    Once I'd understood the problem, it was not difficult to fix,
    though it did lead me a bit of refactoring in specImports.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.