This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24985] caret diagnostics
- 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: Fri, 13 Apr 2012 12:07:01 +0000
- Subject: [Bug c++/24985] caret diagnostics
- Auto-submitted: auto-generated
- References: <bug-24985-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24985
--- Comment #41 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-13 12:07:01 UTC ---
(In reply to comment #39)
> just not print the "note: candidates are:". It seems superfluous info to me.
Personally I like the "candidates are" line, I don't find it superfluous.
If there are two erroneous calls:
f(1);
f(2);
the "candidates are" notes help break up the errors and help me parse them. In
real code these lines might be very long and wrap on the screen:
t.cc:1:6: note: void f()
t.cc:1:6: note: candidate expects 0 arguments, 1 provided
The short, concise "candidates are" line is easy for me to locate quickly and
start scanning down the list from there, especially when there is more than one
error in the code.