http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55322
Bug #: 55322 Summary: Suggestion: Warn suspicious usage of arrays of structures Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: stilgarw...@gmail.com struct { int x; int y; } array[10]; void xxx() { int i=9; while(i--) { array[i].x = 0; array->y = 0; /* an optional warning for this usage may be helpful */ } }