[GHC] #15724: GHC panic with malformed pragma

GHC ghc-devs at haskell.org
Mon Oct 8 15:15:20 UTC 2018


#15724: GHC panic with malformed pragma
-------------------------------------+-------------------------------------
           Reporter:  etorreborre    |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.4.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 This comment crashes GHC (the comment is not properly closed)
 {{{#!hs
 {-# OPTIONS_GHC -f-nowarn-orphans #}
 }}}
 {{{
  ghc: panic! (the 'impossible' happened)
       (GHC version 8.4.3 for x86_64-apple-darwin):
         getOptions'.parseToks: Couldn't read " \"|\")) <> rand_bytes\n
 pure $ (==) hashed rehashed\n      final = either (FailedToParse . show)
 (bool InValid Valid) result\n\n{-# ANN StateNamePrefix (Just (\"Test\" ::
 Text)) " as String

 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15724>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list