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++/24985] caret diagnostics


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.


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