This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/56724] sub-optimal location in error
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Sep 2014 14:36:45 +0000
- Subject: [Bug c/56724] sub-optimal location in error
- Auto-submitted: auto-generated
- References: <bug-56724-4 at http dot gcc dot gnu dot org/bugzilla/>
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...