[Bug fortran/44235] array temporary with high upper bound
dominiq at lps dot ens dot fr
gcc-bugzilla@gcc.gnu.org
Sat Aug 7 09:01:00 GMT 2010
------- Comment #6 from dominiq at lps dot ens dot fr 2010-08-07 09:01 -------
It turns out that the test in comment #0 was not fixed by the patch in comment
#5, but by revision 162966. However with the slight change
a(4:23:3) = a(4:22:3)
a temporary is still created. The patch in comment #5 avoid temporaries in
situations such as
a(4:19:3) = a(7:22:3)
a(4:20:3) = a(7:22:3)
a(4:19:3) = a(7:23:3)
nl = 4
nu = 20
a(1:16:3) = a(4:nu:3)
a(1:16:3) = a(nl:20:3)
but not for
a(1:16:3) = a(nl:nu:3)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44235
More information about the Gcc-bugs
mailing list