[Bug c++/56856] the location of Wformat warnings points *after* the format string

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 14 20:14:00 GMT 2016


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

--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #7)
> Thanks for the background and the pointer.  Is this report then a duplicate
> of bug 43486?

It may be possible to fix this one imperfectly without fixing PR43486. As you
say, one can start passing locations from the parsing point to the warning
point case by case and eventually you will cover most testcases.

Many people have tried to fix PR43486 and eventually desisted. It doesn't seem
to be a problem that can be solved piecemeal: either you have a thoroughly
designed solution that is supported by the maintainers and you commit yourself
to do the transition in one go and fix all the fall-out or it will never
happen.


More information about the Gcc-bugs mailing list