This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24985] caret diagnostics
- From: "manu 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 10:59:17 +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 #35 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-04-13 10:59:17 UTC ---
(In reply to comment #34)
>
> btw, why do we print a location info for
>
> t.C:5:6: note: candidates are:
> f(1);
> ^
>
> at all?
I am proposing to print just: "note: candidates are:", with enough leading
empty space to align with the previous error and no caret. Is that OK? Richard,
Jason?
>
> t.C:1:6: note: candidate expects 0 arguments, 1 provided
> void f(); void f(int,int);
> ^
> t.C:1:17: note: void f(int, int)
> void f(); void f(int,int);
> ^
>
> and the 2nd note here looks wrong.
Could you explain why?