
#7878: Panic when using DerivingGeneric with hs-boot -------------------------------+-------------------------------------------- Reporter: ryant5000 | Owner: dreixel Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.7 Keywords: | Os: Linux Architecture: x86_64 (amd64) | Failure: Compile-time crash Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | -------------------------------+-------------------------------------------- Changes (by parcs): * status: new => patch Comment: I think I have a solution (attached): `genGenericMetaTyCons` creates new top-level external names but it doesn't populate the name cache with them. Creating the names with `newGlobalBinder`, which in turn updates the name cache, fixes this issue (and still passes the testsuite). Though I don't know whether this is the correct solution. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7878#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler