This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/13726] New: [3.3/3.4/3.5 regression]cpp -C -dI loses comments on same line as #include directives
- From: "neroden at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2004 01:22:12 -0000
- Subject: [Bug preprocessor/13726] New: [3.3/3.4/3.5 regression]cpp -C -dI loses comments on same line as #include directives
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Not really critical, but it is a regression from 2.95 and is known to break
some programs, notably one called cxref. :-(
Put this in test.c:
#include "test.h" /* comment */
(Put anything in test.h)
cpp -C -dI outputs
#include "test.h"
losing the comment.
--
Summary: [3.3/3.4/3.5 regression]cpp -C -dI loses comments on
same line as #include directives
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neroden at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13726