This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/31195] New: incorrect handling of backslashes in comments
- From: "matti dot sangi at nokia dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2007 10:47:29 -0000
- Subject: [Bug preprocessor/31195] New: incorrect handling of backslashes in comments
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
a.c:
====
/*
A \
BC
*/
<eof>
Excecute a comment-preserving preprocessing:
$ gcc -E -P -C a.c
/*
A BC
C
*/
Notice the extra 'C', which is a bug.
This bug has some significance as in this particular case there is another tool
that has interest in the content of the C comment and now that tool fails.
--
Summary: incorrect handling of backslashes in comments
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: matti dot sangi at nokia dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31195