Ticket #3995 (new bug)
Comment delimiters ignored inside compiler pragma
| Reported by: | heatsink | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | Compiler (Parser) | Version: | 6.10.4 |
| Keywords: | pragma comment | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Other | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
-- -}
#-}
Change History
Note: See
TracTickets for help on using
tickets.
