[GHC] #13844: Surprising behavior with CPP extension

GHC ghc-devs at haskell.org
Sat Jun 17 16:49:51 UTC 2017


#13844: Surprising behavior with CPP extension
-------------------------------------+-------------------------------------
        Reporter:  deech             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.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):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Mmm, this is unfortunate. Eliding comments prior to pre-processing is not
 trivial but could be done. We would need a simple parser which would also
 produce `#line` pragmas to ensure that line information is correct in the
 post-CPP parse.

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


More information about the ghc-tickets mailing list