[GHC] #14884: Type holes cause assertion failure in ghc-stage2 compiler during type checking

GHC ghc-devs at haskell.org
Mon Mar 5 12:15:04 UTC 2018


#14884: Type holes cause assertion failure in ghc-stage2 compiler during type
checking
-------------------------------------+-------------------------------------
        Reporter:  sighingnow        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I've seen this before.

 It arises during error reporting, when the (now quite elaborate)
 `TcErrors.validSubstitutions` code invokes the constraint solver. To avoid
 the assertion error we need to set the level correctly, and we aren't
 doing that yet.

 It's unsatisfactory, but I think harmless.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14884#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list