#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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to