[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts
dominiq at lps dot ens dot fr
gcc-bugzilla@gcc.gnu.org
Thu Oct 23 20:31:00 GMT 2008
------- Comment #2 from dominiq at lps dot ens dot fr 2008-10-23 20:30 -------
> Modified code from a comment for PR36091
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36091#c3
First the code came from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31610#c16
Second, if I change the lower bound of 'i' as in
integer :: i(-9:1) = 1, j(11) = 1, k(11)
k = j((/1,1,1,1,1,1,1,1,1,1,1/)+i)
print *, k
end
the size of the temporary does not change: the lower bound is probably not
taken into account.
Third 4.2 uses 2 temporaries (of the right size).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37903
More information about the Gcc-bugs
mailing list