------- Comment #8 from dominiq at lps dot ens dot fr  2010-08-07 13:40 -------
> the only unnecessary temporary still created with current trunk is your first
> example.

Again it is because the lower bound of the section is that or the array, but if
increase it I see


pr44235_1_db.f90:22.14:

  a(4:19:3) = a(7:nu:3)
              1
Warning: Creating array temporary at (1)
pr44235_1_db.f90:23.14:

  a(4:19:3) = a(nl:23:3)
              1
Warning: Creating array temporary at (1)

with a clean trunk that disappear with the patch in comment #5

> I am more in favor of changing the upper bound to its actual value,
> probably during resolution.

I agree, it's what I tried to say in comment #4.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44235

Reply via email to