This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/37903] [4.3/4.4 Regression] wrong-code for complicated vector subscripts



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]