http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45159
--- Comment #27 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-02-01 18:16:30 UTC --- To allow expressions like a(n:2*n:2) = a(n+1:2*n+1:2) to be optimized, I will try to write a function which calculates the difference between two gfc_expr() for easy cases. This could also help in other cases, such as determining string lenghts for expressions like c(n:n+2).