// David Li the two references in the loop are not aliased. Not optimized by gcc
struct A{ int a; int b; }; struct A aa[100]; void foo(int n, int i, int j) { int k = 0; for (k = 0; k < n; k++) { aa[i].a += aa[j].b; } } -- Summary: Static (base/offset/size rule) should be extended to handle array elements Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: xinliangli at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35360