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