This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/33063] New: C++ preprocessor warns about /* in //-comments starting with //*
- From: "trick at icculus dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2007 19:04:21 -0000
- Subject: [Bug preprocessor/33063] New: C++ preprocessor warns about /* in //-comments starting with //*
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
As a minimal example, take the following 3-line file:
--- 8< ---
/*
//*
*/
--- 8< ---
Preprocessing this file with -Wall (using either g++ or cpp directly) results
in the warning '"/*" within comment'. This only happens if the surrounding /*
*/ pair is present.
(I discovered this in some code that uses separators like this:
//*****************************************..
Commenting these off with /* */ results in the bogus warnings.)
--
Summary: C++ preprocessor warns about /* in //-comments starting
with //*
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trick at icculus dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33063