Skip to content

Top level splice in Template Haskell has over-ambitious lexical scope?

ghc: panic! (the 'impossible' happened)

(GHC version 7.4.1 for x86_64-unknown-linux):

nameModule b_a2PR{tv}

While working on this project https://github.com/mightybyte/snaplet-postgresql-simple I encountered a GHC panic. To reproduce, check out revision 6573d4359c5cb7699c931c44ebf1bf135099f83b (currently HEAD of the master branch), cabal install it, then go to the example directory and build with "ghc --make Site.hs".

This has caused the crash for me on two different Linux systems with GHC 7.4.1. I realize it requires building a large number of package dependencies, but I have no idea of how to construct a smaller test case. It should be pretty easy to build these dependencies with cabal or cabal-dev.

Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure CompileTimeCrash
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by Simon Peyton Jones
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information