This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2008 20:30:30 -0000
- Subject: [Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts
- References: <bug-37903-14266@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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