This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/24024] [3.4/4.0/4.1 Regression] gcc -E -C processes "\" incorrectly inside C comments
- From: "segher at kernel dot crashing dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2005 16:19:15 -0000
- Subject: [Bug preprocessor/24024] [3.4/4.0/4.1 Regression] gcc -E -C processes "\" incorrectly inside C comments
- References: <20050922213304.24024.stefan.becker@nokia.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From segher at kernel dot crashing dot org 2005-09-27 16:19 -------
Looks like the issue is that lex.c:save_comment() doesn't look at line_note's.
An analogous issue happens with trigraphs.
Btw, the C standard _does_ require escaped newlines and trigrpahs to be
processed in comments.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24024