Opened 8 years ago

Closed 8 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: None/Unknown 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 8 years ago by radekm

Architecture: Unknown/Multiplex86

comment:2 Changed 8 years ago by igloo

difficulty: Unknown
Resolution: fixed
Status: newclosed

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.