[Bug preprocessor/14357] Line-terminating "\" eats following directive - sometimes.
zack at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 1 08:49:00 GMT 2004
------- Additional Comments From zack at gcc dot gnu dot org 2004-03-01 08:49 -------
The reporter is correct in thinking that \-newline is processed before all
directives.
GCC's behavior is correct, but not for the reason stated. The difference
between the two examples is simply that in the first case, the \-newline occurs
after non-whitespace characters; in the second, it occurs at the beginning of
the line. Thus, in the second case, after the \-newline is removed, the
following #endif is still at the beginning of a line and is still executed.
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14357
More information about the Gcc-bugs
mailing list