Skip to content

GHC 6.8.1 panics with lookupRecBndr

When building the CGS module in the dimensional library GHC 6.8.1 panics with the following message:

ghc-6.8.1: panic! (the 'impossible' happened)
  (GHC version 6.8.1 for powerpc-apple-darwin):
        lookupRecBndr $dSucc{v a202} [lid]

The library in general and CGS module in particular is full of type hackery. If it is of any help Succ is defined in Numeric.NumType.

The same error occurs when compiling on x86/Windows so it doesn't seem to be platform specific.

Steps to reproduce:

  • Download dimensional 0.7.1.
  • Uncomment the Numeric.Units.Dimensional.CGS module in dimensional.cabal.
  • Use the cabal process to configure and build.

This doesn't happen in GHC 6.6.1.

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