Ticket #463 (closed bug: Wont Fix)

Opened 8 years ago

Last modified 43 years ago

parse error on input `\' when using -cpp

Reported by: peter26 Owned by: nobody
Priority: normal Milestone:
Component: None Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When compiling code like:

infixl 9 \\
(\\) = undefined

causes a parser error, when compiling with the -cpp option


Change History

Changed 8 years ago by simonmar

  • status changed from assigned to closed
Logged In: YES 
user_id=48280

This is a limitation in CPP, which interprets a backslash at
the end of a line as a line continuation.  You can work
around it in two ways: add a comment at the end of the line
to fool CPP, or use cpphs instead (recent cpphs's work
nicely with GHC, I believe).

Note: See TracTickets for help on using tickets.