overloaded name used in record pattern matching leads to panic! (the 'impossible' happened) in ghc
In Haskell,
- The scope of definitions can be controled.
- The same name can be used to define both a function and a field of record.
- The user can use that name in record pattern matching when only the function is within scope. For example
FuncId{ name = nm }
resulting in the following bug
[38 of 39] Compiling TxsUtils ( src\TxsUtils.hs, .stack-work\dist\1f7101f2\build\Txs
Utils.o )
ghc.EXE: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-unknown-mingw32):
translateConPatVec: lookup
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Windows |
Architecture |