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 #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?


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