https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63451
Bug ID: 63451 Summary: bad location for the condition in for-loops Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org int f (int i, int j) { unsigned int c = 0; if (i < j) { unsigned int n; for (unsigned int i = 0; i < n; i++) { c++; } } return c; } $ cc1 -O1 -Wall -std=c99 test.c test.c:8:7: warning: ānā may be used uninitialized in this function [-Wmaybe-uninitialized] for (unsigned int i = 0; ^