Testcase: void f(int *); int main () { int i; char ia[16]; char ic[16] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}; char ib[16] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}; for (i = 0; i < 16; i++) ia[i] = ib[i] + ic[i]; f(ia); return 0; }
See PR 22368 for the patch which catches this. -- Summary: Vectorizer produces mis-match types Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org OtherBugsDependingO 22368 nThis: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22372