Testcase: /* { dg-do compile } */ /* { dg-options "-std=iso9899:1990 -pedantic -Wformat" } */
#include "format.h" void foo (int i) { printf ("%d%d", i); } gcc-4.6: /home/manuel/test/src/gcc/testsuite/gcc.dg/format/clang-1.c: In function 'foo': /home/manuel/test/src/gcc/testsuite/gcc.dg/format/clang-1.c:9:3: warning: too few arguments for format [-Wformat] clang prints: warning: '.*' specified field precision is missing a matching 'int' argument and the column number points to the extra %d. -- Summary: improve column number and text of format warnings Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44513