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: [email protected]
ReportedBy: [email protected]
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 */
}
}
