[Bug c++/24985] New: Line info in diagnostics is very unfriendly

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Tue Nov 22 04:01:00 GMT 2005


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



More information about the Gcc-bugs mailing list