[Bug c/67488] Incorrect error message on call of nested functions

2016-09-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67488

--- Comment #3 from Andrew Pinski  ---
A similar fix would be good for:
void g() {
  void f(void);
}
void k() {int f(int); f(1);}

Saying f was declared in a different scope too.
Note I don't have access to clang so I can't say what it shows.

[Bug c/67488] Incorrect error message on call of nested functions

2016-09-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67488

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||diagnostic

--- Comment #2 from Andrew Pinski  ---
I actually think gcc's diagnostic is clearer; at least from a standard point of
view.  It is pointing out where the previous definition is located.  All it
might add is that was in a different scope and that would fix this bug.

[Bug c/67488] Incorrect error message on call of nested functions

2015-10-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67488

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-10-22
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
Confirmed.