This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80920] warnings get position wrong - very confusing
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Sep 2017 10:54:44 +0000
- Subject: [Bug c++/80920] warnings get position wrong - very confusing
- Auto-submitted: auto-generated
- References: <bug-80920-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80920
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The caret location is just using the same info as the diagnostic message:
b.C:7:12:...
Should we suppress that too? So if you have a file with thousands of lines in,
rather than give a location that is in the right part of the right constructor,
it should not tell you where in the file it occurred? That would not be an
improvement.
And if we're showing that location anyway, the caret doesn't make it any worse.