This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41137] inefficient zeroing of an array
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Mar 2013 22:19:05 +0000
- Subject: [Bug fortran/41137] inefficient zeroing of an array
- Auto-submitted: auto-generated
- References: <bug-41137-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41137
--- Comment #15 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-03-29 22:19:05 UTC ---
The patch from comment#12 causes memory failure of the
following code:
module zero
implicit none
contains
subroutine foo(a)
real, contiguous :: a(:,:)
a(:,:) = 0
end subroutine foo
end module zero
program main
use zero
implicit none
real, dimension(5,5) :: a
a = 1.
call foo(a(1:5:2,1:5:2))
write (*,'(5F12.5)') a
end program main
which is a bit strange.