[Bug preprocessor/33063] New: C++ preprocessor warns about /* in //-comments starting with //*
trick at icculus dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 13 19:04:00 GMT 2007
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
More information about the Gcc-bugs
mailing list