[GHC] #8314: ASSERTion at TcMType:809 fails on test polykinds/T6068

#8314: ASSERTion at TcMType:809 fails on test polykinds/T6068 ------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- On a recent run through the testsuite on a debug build, testcase polykinds/T6068 was triggering an assertion failure on line 809 of TcMType, which reads {{{ ASSERT2( isWantedCt orig_ct, ppr orig_ct ) }}} in `try_zonk_fun_eq` in `zonkFlats` (just in case line numbers wibble a bit). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8314 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8314: ASSERTion at TcMType:809 fails on test polykinds/T6068 -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 8129 -------------------------------------+------------------------------------ Changes (by adamgundry): * cc: adam.gundry@… (added) * related: => 8129 Comment: I've tracked this down a bit (see comments to #8129). The problem seems to have been introduced in e365d4963f1061878269502f256b4a56ca273a78. I don't know enough about the constraint solver to be sure of the right fix, however. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8314#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8314: ASSERTion at TcMType:809 fails on test polykinds/T6068 -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 8129 -------------------------------------+------------------------------------ Comment (by simonpj): I'll look at this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8314#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8314: ASSERTion at TcMType:809 fails on test polykinds/T6068 -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 8129 -------------------------------------+------------------------------------ Comment (by simonpj): The comments should say #8314 not #8134. In [changeset:8cfbdccb7f8716c2b6b13b3c7884f52b1087d782/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="8cfbdccb7f8716c2b6b13b3c7884f52b1087d782" Accommodate Derived constraints in two places (fix Trac #8129, #8134) If we have class (F a ~ b) => C a b then we can produce *derived* CFunEqCans. These were not being treated properly in two places: a) in TcMType.zonkFlats (Trac #8134) b) in TcSMonad.prepareInertsForImplications (Trac #8129) This patch fixes both. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8314#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8314: ASSERTion at TcMType:809 fails on test polykinds/T6068 -------------------------------------+------------------------------------ Reporter: goldfire | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: 8129 -------------------------------------+------------------------------------ Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: Thanks, now fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8314#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC