http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48062
Summary: `shadowed declaration is here' should be a note Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: d.g.gorbac...@gmail.com cat > main.c int i; int main(void) { int i = 0; return i; } ^D $ gcc -Wshadow main.c main.c: In function 'main': main.c:5:7: warning: declaration of 'i' shadows a global declaration [-Wshadow] main.c:1:5: warning: shadowed declaration is here [-Wshadow]