[GHC] #8932: Panic with TemplateHaskell and duplicate indentifiers

#8932: Panic with TemplateHaskell and duplicate indentifiers -----------------------------------+--------------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template | Version: 7.8.1-rc2 Haskell | Operating System: Unknown/Multiple Keywords: | Type of failure: Compile-time crash Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | -----------------------------------+--------------------------------------- This code causes GHC panic under 7.8.1-RC2: {{{ {-# LANGUAGE TemplateHaskell #-} module TXXXX where $([d| foo :: a -> a foo x = x |]) foo :: a foo = undefined }}} {{{ [killy@xerxes : /dane/projekty/sandbox/haskell] ghc -fforce-recomp TXXXX.hs [1 of 1] Compiling TXXXX ( TXXXX.hs, TXXXX.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package array-0.5.0.0 ... linking ... done. Loading package deepseq-1.3.0.2 ... linking ... done. Loading package containers-0.5.4.0 ... linking ... done. Loading package pretty-1.1.1.1 ... linking ... done. Loading package template-haskell ... linking ... done. ghc: panic! (the 'impossible' happened) (GHC version 7.8.0.20140226 for x86_64-unknown-linux): lookupExactOcc foo_a2kL{v} [main:TXXXX.foo{v a2kL} defined at TXXXX.hs:11:1, main:TXXXX.foo{v a2kL} defined at TXXXX.hs:5:3] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8932 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8932: Panic with TemplateHaskell and duplicate indentifiers
---------------------------------------+-----------------------------------
Reporter: jstolarek | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Template Haskell | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time crash | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
---------------------------------------+-----------------------------------
Comment (by Simon Peyton Jones

#8932: Panic with TemplateHaskell and duplicate indentifiers ---------------------------------------+----------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: merge Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: th/T8932 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by simonpj): * status: new => merge * testcase: => th/T8932 Comment: Thanks for discovering this. Now fixed. Merge to the 7.8 branch, but don't hold up the release for it. 7.8.2 would do. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8932#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8932: Panic with TemplateHaskell and duplicate indentifiers ---------------------------------------+----------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template Haskell | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: th/T8932 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged in 7.8, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8932#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8932: Panic with TemplateHaskell and duplicate indentifiers ---------------------------------------+----------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.3 Component: Template Haskell | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: th/T8932 | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by thoughtpolice): * milestone: => 7.8.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8932#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC