[GHC] #13383: ghc: panic!

#13383: ghc: panic! -------------------------------------+------------------------------------- Reporter: henenenerik | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: Panic | Operating System: Windows Architecture: | Type of failure: Incorrect API Unknown/Multiple | annotation Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Tried to compile some code provided in the course I'm taking and caused ghc to panic. Got this in my command prompt: {{{ [1 of 1] Compiling Main ( temp.hs, temp.o ) ghc: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-mingw32): initTc: unsolved constraints WC {wc_insol = [W] throw_a2dw :: t_a2dv[tau:1] (CHoleCan: throw) [W] throw_a2eY :: t_a2eX[tau:1] (CHoleCan: throw) [W] throw_a2fc :: t_a2fb[tau:1] (CHoleCan: throw)} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13383 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13383: ghc: panic! -------------------------------------+------------------------------------- Reporter: henenenerik | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Panic Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by henenenerik): * failure: Incorrect API annotation => Compile-time crash or panic -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13383#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13383: ghc: panic! -------------------------------------+------------------------------------- Reporter: henenenerik | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Panic Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by henenenerik): * Attachment "temp.hs" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13383 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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
participants (1)
-
GHC