[GHC] #15053: Compiler panic on invalid syntax (unterminated pragma)
GHC
ghc-devs at haskell.org
Wed Apr 18 21:17:16 UTC 2018
#15053: Compiler panic on invalid syntax (unterminated pragma)
-------------------------------------+-------------------------------------
Reporter: AndreasK | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.2.2
(Parser) |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Compile-time
Unknown/Multiple | crash or panic
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
The following minimal example causes a compiler panic.
{{{
{-# OPTIONS_GHC -O1 }
"
#-}
}}}
{{{
ghc-stage2.exe: panic! (the 'impossible' happened)
(GHC version 8.5.20180413 for x86_64-unknown-mingw32):
getOptions'.parseToks: Couldn't read "\r\n\"\r\n " as String
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
Happens in HEAD and 8.2.2 at least. Double quotes seem to confuse the
parser. Also panics if there are two doublequotes.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15053>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list