[GHC] #13383: ghc: panic!

GHC ghc-devs at haskell.org
Mon Mar 6 13:57:12 UTC 2017


#13383: ghc: panic!
-------------------------------------+-------------------------------------
        Reporter:  henenenerik       |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  duplicate         |             Keywords:  Panic
Operating System:  Windows           |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #13106            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RyanGlScott):

 * status:  new => closed
 * resolution:   => duplicate
 * related:   => #13106


Comment:

 Thanks for the bug report.

 This is a duplicate of #13106, which has been fixed as of GHC 8.0.2. The
 error relates to the fact that `throw` is not defined. On 8.0.2 or later,
 it properly reports this:

 {{{
 GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
 Loaded GHCi configuration from /home/rgscott/.ghci
 [1 of 1] Compiling Main             ( temp.hs, interpreted )

 temp.hs:7:11: error:
     Variable not in scope: throw :: Exception -> Exceptional Int

 temp.hs:16:50: error:
     Variable not in scope: throw :: Exception -> Exceptional String

 temp.hs:19:25: error:
     Variable not in scope: throw :: Exception -> Exceptional String
 }}}

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


More information about the ghc-tickets mailing list