GHC crashes with "impossible happened ... RnEnv.lookupImportedName" if using DisambiguateRecordFields and qualifiers
If you specify DisambiguateRecordFields as an option, and then try to use qualifiers for field names in a data constructor, GHC crashes like this:
ghc-6.8.2: panic! (the 'impossible' happened)
(GHC version 6.8.2 for i386-unknown-linux):
RnEnv.lookupImportedName F.field{v}
See attached files for example -- simply do 'ghci Main.hs' to see the bug.
This bug means that if you use field disambiguation in part of a module, you have to use it everywhere in that module.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |