Ticket #5189 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

incorrect pragma syntax leeds to panic

Reported by: zickzackv Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.10.4
Keywords: pragma panic Cc:
Operating System: MacOS X Architecture: x86
Type of failure: GHCi crash Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When using a wrong pragma syntax like:

{-# LANGUAGE IncoherentInstances? -#} {-# LANGUAGE OverlappingInstances? #-} -- wrong pragma syntax! {-# LANGUAGE NoMonomorphismRestriction? #-} {-# LANGUAGE MultiParamTypeClasses? #-}

This leeds to the following ghc panic:

ghc: panic! (the 'impossible' happened)

(GHC version 6.10.4 for x86_64-apple-darwin):

getOptions'.parseLanguage(1) went past eof token

Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug

Change History

Changed 2 years ago by simonmar

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

Thanks - please upgrade your GHC, we fixed this one in 6.12 and later. (see #3153)

Note: See TracTickets for help on using tickets.