http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56937
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-04-29 Ever Confirmed|0 |1 --- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-29 22:26:20 UTC --- Apparently there is no dependency analysis for array-vector assignments. The following test create a temporary that is not needed integer :: r(10), idx(4), jdx(4) r = [(i+10,i=1,10)] idx = [1, 2, 3, 4] jdx = [6, 7, 8, 9] r(idx) = r(jdx) print *, r end r(idx) = r(jdx) 1 Warning: Creating array temporary at (1)