#2901: GHC crashes with "impossible happened ... RnEnv.lookupImportedName" if
using DisambiguateRecordFields and qualifiers
------------------------+---------------------------------------------------
Reporter: spookylukey | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.2 | Severity: normal
Keywords: | Testcase:
Os: Linux | Architecture: Unknown/Multiple
------------------------+---------------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2901>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs