[GHC] #10942: CPP pragma ignored if top comments and Opt_KeepRawTokenStream

GHC ghc-devs at haskell.org
Wed Oct 7 13:47:53 UTC 2015


#10942: CPP pragma ignored if top comments and Opt_KeepRawTokenStream
-------------------------------------+-------------------------------------
        Reporter:  alanz             |                Owner:  alanz
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
-------------------------------------+-------------------------------------

Comment (by alanz):

 It seems the simplified parser in `HeaderInfo.getOptions'` needs to to
 skip over any vanilla comments seen and keep going.

 Alternatively `Opt_KeepRawTokenStream` must be unset in
 `HeaderInfo.getOptions` before calling `getToks`.

 I suspect the latter will be the simplest.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10942#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list