[GHC] #3389: CPP strips out C-style comments
GHC
trac at galois.com
Wed Jul 22 15:13:13 EDT 2009
#3389: CPP strips out C-style comments
------------------------------+---------------------------------------------
Reporter: nominolo | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Driver | Version: 6.10.2
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by malcolm.wallace at cs.york.ac.uk):
Stripping C comments is part of the normal tokenisation behaviour of CPP.
There are no options to gcc to turn it off. See for instance
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC2
If you want to avoid C-tokenisation but still use CPP with Haskell, try
cpphs instead.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3389#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list