https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66926
--- Comment #4 from Yuri Rumyantsev <ysrumyan at gmail dot com> --- I have a fix in my local area which cures ICE and perform outer-loop vectorization: vect-pr40979.f90:8:0: note: LOOP VECTORIZED vect-pr40979.f90:8:0: note: OUTER LOOP VECTORIZED Bug 66951 was filed for the same problem.