[GHC] #14641: GHC panics in incomplete program

#14641: GHC panics in incomplete program -------------------------------------+------------------------------------- Reporter: mmc | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.0.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Compile-time Unknown/Multiple | crash or panic Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I misspell a variable and GHC panics. I have the following test1.hs file: {{{ foo :: Double -> Double -> Bool foo a b = c > b }}} Then I do ghc -c test1.hs and get: {{{ ghc: panic! (the 'impossible' happened) (GHC version 8.0.2 for x86_64-unknown-linux): initTc: unsolved constraints WC {wc_insol = [W] x_a1LD :: t_a1LC[tau:1] (CHoleCan: x)} }}} If I add a "main" method to my test.hs, I get the expected {{{ test1.hs:2:11: error: Variable not in scope: c :: Double }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14641 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14641: GHC panics in incomplete program -------------------------------------+------------------------------------- Reporter: mmc | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Thanks for the bug report. This one of GHC's most oft-reported bugs (search Trac for "initTc". It is a duplicate of #13106, and has been fixed in GHC 8.2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14641#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14641: GHC panics in incomplete program -------------------------------------+------------------------------------- Reporter: mmc | Owner: (none) Type: bug | Status: closed Priority: low | Milestone: Component: Compiler | Version: 8.0.2 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | 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 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14641#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC