[GHC] #13910: Inlining a definition causes GHC to panic (repSplitTyConApp_maybe)

GHC ghc-devs at haskell.org
Thu Sep 14 09:12:29 UTC 2017


#13910: Inlining a definition causes GHC to panic (repSplitTyConApp_maybe)
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.2.1-rc2
  checker)                           |
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:  14119             |             Blocking:
 Related Tickets:  #13877, #14038,   |  Differential Rev(s):
  #14175                             |
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"9218ea60faa744803fb41066aedd1da8f1bd9185/ghc"
 9218ea60/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="9218ea60faa744803fb41066aedd1da8f1bd9185"
 Interim fix for a nasty type-matching bug

 The type matcher in types/Unify.hs was producing a substitution
 that had variables from the template in its range.  Yikes!

 This patch, documented in Note [Matching in the presence of casts],
 is an interm fix.  Richard and I don't like it much, and are
 pondering a better solution (Trac #14119).

 All this came up in investigating Trac #13910. Alas this patch
 doesn't fix #13910, which still has ASSERT failures, so I have
 not yet added a test.  But the patch does fix a definite bug.
 }}}

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


More information about the ghc-tickets mailing list