http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58137
Bug ID: 58137 Summary: [trunk, ICE] full unroll + AVX2 vectorization Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kirill.yukhin at intel dot com Created attachment 30635 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30635&action=edit Reproducer Hello attached test produces ICE, when compiled as $ gcc -S -O3 1.c -mavx2 It seems that full unroll or copyprop (or whatever) introduces something wrong. 1.c: In function 'more_xrv': 1.c:23:1: error: type mismatch in pointer plus expression more_xrv(void) ^ struct XRV * struct XRV * struct XRV * vect_vec_iv_.15_88 = vect_cst_.13_60 + { 64B, 64B, 64B, 64B }; 1.c:23:1: error: type mismatch in pointer plus expression struct XRV * struct XRV * struct XRV * ...