GHC internal error when missing -XFlexibleContexts with generics
See test case GEq2 (currently on the ghc-generics branch, soon to be merged). When missing -XFlexibleContexts, the compiler panics with
GHC internal error: `Main.$gdmgeq' is not in scope during type checking, but it passed the renamer
When -XFlexibleContexts is added, the error disappears.
Trac metadata
Trac field | Value |
---|---|
Version | 7.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |