Skip to content

"went past eof token" crash when using -XOverLoadedStrings

When trying to compile the following file:

{-# LANGUAGE -XOverLoadedStrings #-}

main = PutStrLn "meow"

I get the following error message:

ghc: panic! (the 'impossible' happened)

(GHC version 6.10.4 for x86_64-unknown-linux):

getOptions'.parseLanguage(2) went past eof token

Please report this as a GHC bug: -link to ghc reportabug-

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information