https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61852
Bug ID: 61852 Summary: Incorrect column number for -Wimplicit-function-declaration Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chengniansun at gmail dot com The current version points to the start of the statement containing the undeclared function call. $: cat t.c int f (int a) { int b = a + a + a + ff(a); return b; } $: gcc-trunk -Wimplicit-function-declaration -c t.c t.c: In function ‘f’: t.c:2:3: warning: implicit declaration of function ‘ff’ [-Wimplicit-function-declaration] int b = a + a + a + ff(a); ^ $: clang-trunk -Wimplicit-function-declaration -c t.c t.c:2:23: warning: implicit declaration of function 'ff' is invalid in C99 [-Wimplicit-function-declaration] int b = a + a + a + ff(a); ^ 1 warning generated.