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/29586] New: [4.1 Regression] CPP doesn't handle ticks in #warning


$ cat blah.c 
#warning (that's not C?)
$ gcc-4.1  -c -o blah.o blah.c
blah.c:1:2: warning: #warning (that's not C?)
$ gcc-4.3-HEAD  -c -o blah.o blah.c
blah.c:1:2: warning: #warning (thatblah.c:1:15: warning: missing terminating '
character
's not C?)

Fails with:
gcc version 4.3.0 20061024 (experimental)
gcc version 4.2.0 20060922 (experimental)

Works with:
gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)


-- 
           Summary: [4.1 Regression] CPP doesn't handle ticks in #warning
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aldot at gcc dot gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


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


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