Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1396 closed bug (fixed)

Panic in slitFunTy

Reported by: Michael D. Adams Owned by:
Priority: normal Milestone: 6.8.1
Component: Compiler Version: 6.6.1
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Test Case: gadt24
Blocked By: Blocking:
Related Tickets: Differential Rev(s):


This code:

{-# OPTIONS -fglasgow-exts #-}

module SYZ where

data Right provides final where
  RightNull :: Right final final
  RightCons :: b -> Right a final -> Right (b -> a) final

collapse_right :: right -> Right right final -> final
--collapse_right f (RightNull)     = f
collapse_right f (RightCons b r) = collapse_right (f b) r

causes this panic:

$ ghc SYZ.hs 
ghc-6.6.1: panic! (the 'impossible' happened)
  (GHC version 6.6.1 for i386-unknown-linux):
        splitFunTy right{tv adJ} [sk]

Please report this as a GHC bug:

However, GHC 6.6 has no problem with this code.

Change History (3)

comment:1 Changed 8 years ago by simonpj

  • Milestone set to 6.6.2

Sigh. It's ok in the HEAD, which is good.

Could someone add a case to the test suite (and record it in the test-case field of this bug).


comment:2 Changed 8 years ago by Michael D. Adams

  • Resolution set to fixed
  • Status changed from new to closed
  • Test Case set to gadt24

Marking as fixed since it's ok in the HEAD.

comment:3 Changed 8 years ago by simonmar

  • Milestone changed from 6.6.2 to 6.8.1
Note: See TracTickets for help on using tickets.