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/56724] sub-optimal location in error


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56724

--- Comment #16 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
What's not fixed is this:
r.c:3:5: note: expected âint (*)(double *)â but argument is of type âint
(*)(int *)â
 int callf (int, int, int (*)(double *));
     ^
we should point to the actual parameter.  I think PR60129 is a dupe for this,
though.
We'll probably have to add some *location_t stuff into the function_decl or
somewhere for this...

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