Opened 6 years ago

Closed 6 years ago

#3396 closed bug (fixed)

Parsing LANGUAGE pragma causes GHC panic

Reported by: radekm Owned by:
Priority: normal Milestone:
Component: Compiler (Parser) Version: 6.10.4
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Parsing LANGUAGE pragma like this (notice the '*'):

{-# LANGUAGE * #-}


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

Instead of the '*' you can write another character like '+', '-' etc. I'm using GHC from Arch Linux's repository (package: ghc 6.10.4-1).

Change History (2)

comment:1 Changed 6 years ago by radekm

  • Architecture changed from Unknown/Multiple to x86

comment:2 Changed 6 years ago by igloo

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

Thanks for the report. Happily, this is already fixed in the HEAD:

    cannot parse LANGUAGE pragma: comma-separated list expected
Note: See TracTickets for help on using tickets.