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]
Other format: [Raw text]

[Bug preprocessor/14357] Line-terminating "\" eats following directive - sometimes.


------- 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


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