This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39615] New: Incorrect warning with -pedantic flag
- From: "kraftche at cae dot wisc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Apr 2009 16:04:09 -0000
- Subject: [Bug c/39615] New: Incorrect warning with -pedantic flag
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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