This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/14357] Line-terminating "\" eats following directive - sometimes.
- From: "zack at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2004 08:49:41 -0000
- Subject: [Bug preprocessor/14357] Line-terminating "\" eats following directive - sometimes.
- References: <20040301082937.14357.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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