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: cpp bug with \r


> In case there is a \r found in the end of a define line
> which is extended to two lines with \ , the preprocessor is confused
> and does not process it correctly :

Thanks for your bug report. This is not strictly a bug, as on Unix,
end-of-line is indicated by a single LF character, instead of a CRLF
sequence. Therefore, a CR character, on Unix, indicates white space.
Then, the \ character is not the last character in the line, and your
program does not work.

Because this is such a frequent problem, the mainline compiler (2.96
20000326 (experimental)) will also treat CRLF indicating end-of-line.

Regards,
Martin

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