#8368 closed bug (fixed)
Panic in rejigConRes
Reported by: | goldfire | Owned by: | goldfire |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Compiler | Version: | 7.7 |
Keywords: | Cc: | ||
Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
Type of failure: | None/Unknown | Test Case: | indexed-types/should_fail/{T8368,T8368a} |
Blocked By: | Blocking: | ||
Related Tickets: | Differential Rev(s): | ||
Wiki Page: |
Description
When I compile the following erroneous code
{-# LANGUAGE DataKinds, TypeFamilies, GADTs #-} import GHC.TypeLits data Foo = Bar data instance Sing (n :: Foo) where SBar :: Sing Foo
I get
*** Exception: compiler/typecheck/TcTyClsDecls.lhs:1266:5-62: Irrefutable pattern failed for pattern Data.Maybe.Just subst
I think this is my fault. I will fix.
Attachments (2)
Change History (9)
comment:1 Changed 5 years ago by
Status: | new → patch |
---|
Changed 5 years ago by
Attachment: | 0001-Fix-Trac-8368.patch added |
---|
Changed 5 years ago by
Attachment: | 0001-New-tests-for-8368.patch added |
---|
comment:2 Changed 5 years ago by
@goldfire: It passes validate, except for some perf tests which failed previously. Do you want this trace? It is visible during normal build of ghc.
pprTrace "RAE1" (vcat [ppr tmpl_tvs, ppr res_tmpl, ppr dc_tvs, ppr res_ty]) $
comment:3 Changed 5 years ago by
Yikes, no! Thanks for catching that -- searching for my initials is one of my internal steps during validation, which I obviously skipped. I just checked, and that should be the only one to remove.
Thanks!
comment:7 Changed 5 years ago by
Test Case: | → indexed-types/should_fail/{T8368,T8368a} |
---|
Thanks, monoidal, for doing the last leg of the fix.
Note: See
TracTickets for help on using
tickets.
I have fixed this, but I am unable to validate, as per this email. If someone wants to validate and push, I'd be grateful. Or, suggest a way I can validate. :)