Opened 23 months ago

Closed 23 months ago

Last modified 23 months ago

#6141 closed bug (invalid)

ghc: panic! (the 'impossible' happened)

Reported by: aSect Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.4.1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: GHC rejects valid program Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

i tried to load the following code in ghci:

{-# OPTIONS_GHC -Wall -O2 #-}

module Main where

import Data.Map (Map)
import qualified Data.Map as Map

data Vertex a

Vertex { vname :: a }

deriving (Show, Read, Eq)

data Edge a

Edge { xedge :: a

, yedge
a } deriving (Show, Read, Eq)

data Graph a

Graph { vertexes :: [Vertex a]

, edges
[Edge a]
, adjacents
Vertex a -> [Vertex a] } deriving (show, Read, Eq)

and then i got the following error:

ghc: panic! (the 'impossible' happened)

(GHC version 7.4.1 for x86_64-unknown-linux):

nameModule show{tv a25N}

Change History (2)

comment:1 Changed 23 months ago by aSect

  • Resolution set to invalid
  • Status changed from new to closed

comment:2 Changed 23 months ago by guest

It was fixed by #5961.

Note: See TracTickets for help on using tickets.