Opened 2 years ago

Closed 2 years ago

#6008 closed bug (fixed)

ghc: panic! (the 'impossible' happened)

Reported by: jtb Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.4.1
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Hello,

I get the following output in ghci ordering me to report this bug:

Prelude> :load keltis_typedefs.hs
[1 of 1] Compiling Main             ( keltis_typedefs.hs, interpreted )
ghc: panic! (the 'impossible' happened)
  (GHC version 7.4.1 for x86_64-unknown-linux):
	nameModule eq{tv a9U}

I'll attach the file I was trying to load (don't laugh, I was just experimenting with Haskell).

Best regards & thank you,

Tobias

Attachments (1)

keltis_typedefs.hs (410 bytes) - added by jtb 2 years ago.
File to load to produce the bug

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by jtb

File to load to produce the bug

comment:1 Changed 2 years ago by jtb

  • Architecture changed from Unknown/Multiple to x86_64 (amd64)

comment:2 Changed 2 years ago by michalt

Thanks for reporting! This seems to be fixed in HEAD :)

> ~/dev/ghc-clean/inplace/bin/ghc-stage2 -O2 -fforce-recomp -rtsopts
keltis_typedefs.hs
[1 of 1] Compiling Main             ( keltis_typedefs.hs, keltis_typedefs.o )

keltis_typedefs.hs:6:29:
    Illegal deriving item `eq'
    In the data declaration for `PlayingCard'

keltis_typedefs.hs:13:24:
    Illegal deriving item `eq'
    In the data declaration for `Colour'

keltis_typedefs.hs:16:29:
    Illegal deriving item `eq'
    In the data declaration for `PlayersHand'

but not in the 7.4 branch. I'm not closing since I'm not sure which commit did
actually fix this and if it is easy to merge it into 7.4 branch (from briefly
looking at the logs it might have been
3bf54e78cfd4b94756e3f21c00ae187f80c3341d).

comment:3 Changed 2 years ago by jtb

Thank you for your quick response! Great that it is already fixed in HEAD.

And as you posted the error messages, I was actually able to correct my code :).

comment:4 Changed 2 years ago by simonpj

  • Difficulty set to Unknown
  • Resolution set to fixed
  • Status changed from new to closed

Closing; we have tests for this already I think.

Note: See TracTickets for help on using tickets.