Ticket #7174 (closed bug: duplicate)

Opened 9 months ago

Last modified 9 months ago

panic when using function in 'deriving' data declaration

Reported by: shapeshifter Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.4.2
Keywords: Cc:
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: Compile-time crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Hello. I haven't found any matching bugs for this. To reproduce:

1) Start up ghci

2) Enter something like the following, which contains a typo 'show' instead of 'Show'.

data Test = Yes | No deriving (show, Eq)

3) ghci will panic saying:

Prelude> data Test = Yes | No deriving (show, Eq)
ghc: panic! (the 'impossible' happened)
  (GHC version 7.4.2 for i386-unknown-linux):
	nameModule show{tv aa0}

Notes:

  • The 'show' can be substituted with any other function name
  • It also happens on x86_64.
  • It also happens when putting such a line into a .hs file and trying to compile it

Change History

Changed 9 months ago by guest

  • status changed from new to closed
  • resolution set to duplicate

It is already fixed in HEAD, bug #5961.

Note: See TracTickets for help on using tickets.