Ticket #3433 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

Omitted # after LANGUAGE pragma causes panic

Reported by: viritrilbia Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.10.3
Keywords: Cc:
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

If the # in the closing #-} after a LANGUAGE pragma is omitted, GHC panics. For example, creating a file containing the single line:

{-# LANGUAGE TypeFamilies -}

and passing it to GHC or GHCi produces:

ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.3 for i386-unknown-linux):
	getOptions'.parseLanguage(1) went past eof token

Change History

Changed 4 years ago by simonmar

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

dup of #3153

Note: See TracTickets for help on using tickets.