This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: unexpected parse error in #define


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]