[Bug preprocessor/35313] New: Valid pp-expression rejected in C99 mode

neil at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Feb 23 13:54:00 GMT 2008


The following obeys the syntax, semantics and constraints of C99, but is
rejected with -pedantic-errors

extern int x;
#if 0 ? 2,3 : 2
#endif


-- 
           Summary: Valid pp-expression rejected in C99 mode
           Product: gcc
           Version: 4.1.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neil at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list