[GHC] #3995: Comment delimiters ignored inside compiler pragma
GHC
cvs-ghc at haskell.org
Mon Apr 19 14:19:43 EDT 2010
#3995: Comment delimiters ignored inside compiler pragma
---------------------------------+------------------------------------------
Reporter: heatsink | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 6.10.4 | Keywords: pragma comment
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: Other
---------------------------------+------------------------------------------
GHC accepts some pragmas that are not valid comments because of embedded
comment delimiters. If the delimiters are hidden inside an embedded
comment or string, they are not recognized by the parser, but they should
be according to the Haskell report. For example, the following has one
opening and three closing comment delimiters, but is accepted by the
parser.
{{{
{-# RULES
"-}" id 0 = 0
-- -}
#-}
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3995>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list