This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56856] the location of Wformat warnings points *after* the format string
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Apr 2013 10:50:20 +0000
- Subject: [Bug c++/56856] the location of Wformat warnings points *after* the format string
- Auto-submitted: auto-generated
- References: <bug-56856-4 at http dot gcc dot gnu dot org/bugzilla/>
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.