This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/39615] New: Incorrect warning with -pedantic flag


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]