[Bug fortran/37903] New: wrong-code for complicated vector subscripts

mikael dot morin at tele2 dot fr gcc-bugzilla@gcc.gnu.org
Thu Oct 23 18:49:00 GMT 2008


Modified code from a comment for PR36091
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36091#c3

      integer :: i(-1:1) = 1, j(3) = 1, k(3)
      k = j((/1,1,1/)+i)
      end

Wrong code, the temporary array generated is too small.


-- 
           Summary: wrong-code for complicated vector subscripts
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikael dot morin at tele2 dot fr


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



More information about the Gcc-bugs mailing list