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++/80920] warnings get position wrong - very confusing


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.

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