[GHC] #15724: GHC panic with malformed pragma

GHC ghc-devs at haskell.org
Mon Oct 8 15:15:45 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
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Description changed by etorreborre:

Old description:

> 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
>
> }}}

New description:

 This comment crashes GHC (the comment is not properly closed)
 {{{#!hs
 {-# OPTIONS_GHC -f-no-warn-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#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list