On Thu, Nov 07, 2002 at 04:19:31PM -0800, Dale Johannesen wrote:
One of our users just did this:
// comment, space character follows the backslash:\
main() {
}
gcc ignores the space character, which causes the comment to eat the
next line.
That's wrong, isn't it?
No, that's an intentional feature. From the manual:
3. Continued lines are merged into one long line.
....
If there is white space between a backslash and the end of a line,
that is still a continued line. However, as this is usually the
result of an editing mistake, and many compilers will not accept
it as a continued line, GCC will warn you about it.
Note especially the last paragraph. The user did get a warning,
didn't they?
No.