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++/56856] the location of Wformat warnings points *after* the format string


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

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Blocks|                            |52952
            Summary|the location of -Wformat    |the location of Wformat
                   |warnings point *after* the  |warnings points *after* the
                   |format string               |format string

--- Comment #1 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2013-04-06 10:50:20 UTC ---
And this blocks PR52952 because with the *correct* offset, we get this in C++:

/home/manuel/test2/src/gcc/testsuite/g++.dg/ext/builtin4.C:9:16: warning:
format â%dâ expects a matching âintâ argument [-Wformat=]
   printf("%d");   // { dg-warning "expects a matching" }
                ^

which is even worse than without offset locations.

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