[GHC] #4939: Panic in parsing a stmt
GHC
cvs-ghc at haskell.org
Tue Feb 1 14:05:31 CET 2011
#4939: Panic in parsing a stmt
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by simonmar):
You need to use a proper `SrcLoc` when calling `parseStmt`. e.g. the one
used by `GHC.runStmt` is `mkSrcLoc (fsLit "<interactive>") 1 1`.
The panic isn't a bug in this case, because the test code is invoking GHC
internals (`Lexer` and `Parser`). If you'd like us to expose more via the
GHC API, please make a feature request.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4939#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list