[GHC] #7894: Crash on :i M.->
GHC
ghc-devs at haskell.org
Fri Jun 7 10:03:31 CEST 2013
#7894: Crash on :i M.->
---------------------------------+------------------------------------------
Reporter: monoidal | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 7.6.3
Resolution: fixed | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHCi crash | Difficulty: Unknown
Testcase: ghci/scripts/T7894 | Blockedby:
Blocking: | Related:
---------------------------------+------------------------------------------
Changes (by simonpj):
* status: new => closed
* difficulty: => Unknown
* resolution: => fixed
* testcase: => ghci/scripts/T7894
Comment:
The panic in `OccName.isDataOcc` looked like this:
{{{
isDataOcc (OccName DataName _) = True
isDataOcc (OccName VarName s)
| isLexCon s = pprPanic "isDataOcc: check me" (ppr s)
-- Jan06: I don't think this should happen
isDataOcc _ = False
}}}
I see no good reason why `isDataOcc` should be sure that `isLexCon` would
definitely be false (and it's true in this case). So I've just removed
the bogus looking test.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7894#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list