unexpected parse error in #define

Neil Booth NeilB@earthling.net
Fri Oct 6 10:27:00 GMT 2000


Zack Weinberg wrote:-

> The odds are overwhelming that the actual problem is that there's a
> space at the end of line 2 of test.c.  In all released versions of
> GCC, \-newline doesn't trigger continuation if there's whitespace
> between the \ and the end of the line.
> 
> We recently discussed changing this but I don't remember if it was
> implemented or not.

Yes it is.  Currently backslash-horizontal space(s)-newline is removed
from the input, no matter what the context.  Here newline can be '\r'
'\n' '\r\n' or '\n\r'.

Jamie, when your paperwork finishes could you please use
skip_escped_newlines () in your skip_line_comment patch so we stay
consistent here?

Thanks,

Neil.


More information about the Gcc-bugs mailing list