Compiling this: #ifdef __cplusplus // should not be visible to C compiler #endif
int main() { return 0; } with -pedantic flag results in the following warning: bug.c:2:1: warning: C++ style comments are not allowed in ISO C90 bug.c:2:1: warning: (this will be reported only once per input file) -- Summary: Incorrect warning with -pedantic flag Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kraftche at cae dot wisc dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39615