This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24985] New: Line info in diagnostics is very unfriendly
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Nov 2005 04:01:36 -0000
- Subject: [Bug c++/24985] New: Line info in diagnostics is very unfriendly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Showing the source line in the diagnostic, with a caret ("^") inder the column
in error, is much friendlier. The best I've ever seen also was graceful when
the error was inside a maco expansion; it showed the position in the token list
of each nested macro, limited to a dozen or so tokens on either side of the
error (or nested macro invoke) in case of long macro bodies. Macros are less
common in C++, but are still used heavily in legacy code (and by legacy
programmers :-) ). Figuring out the expansion by hand, or having to do a -E and
then compile the expanded source, are both pains in the butt.
Ivan
--
Summary: Line info in diagnostics is very unfriendly
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24985