This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21409] Attached fortran 95 code generates error
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2005 01:24:24 -0000
- Subject: [Bug fortran/21409] Attached fortran 95 code generates error
- References: <20050506005804.21409.joe@confucius.gnacademy.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-06 01:24 -------
Reduced testcase (I tried not to reduce it too much):
subroutine difq3 (jmax, ngmax, ams)
implicit none
integer*4 :: jmax, ngmax
real*8, dimension(32) :: ams
real*8, dimension(32) :: edd
integer*4 :: j
forall (j=2:jmax)
ams(1:ngmax)= edd(j-1)
end forall
end
But note I get a warning with ICC:
fortcom: Warning: t.f, line 8: All active combinations of index-names are not used within the variable
being defined (i.e., leftside) of this assignment-stmt. [AMS]
ams(1:ngmax)= edd(j-1)
.........^
So I don't know if this code is valid or not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21409