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 preprocessor/33305] New: We should warn about empty macro arguments


As noted in PR33304, empty macro arguments can cause problems for ISO C90
compilers (solaris cc) as well as for older gcc versions like 2.8.1.  Therefore
I'd like to see cpp warn about these constructs either with -pedantic in C90
more and/or its own flag.

We should use this warning during bootstrap to keep the sources bootstrappable
when using compilers that have this issue.  We have to fix the existing cases
before we do that though.


-- 
           Summary: We should warn about empty macro arguments
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
 BugsThisDependsOn: 33304


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33305


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