This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: is valid this use of forall


On 05/28/2013 06:41 PM, Dominique Dhumieres wrote:
I get

  forall:            1 do:           5
  forall:            0 do:           0
  forall:            0 do:           0
  forall:            0 do:           0
  forall:            0 do:           0

with gfortran 4.5.4, but the infinite loop with 4.6, 4.7, 4.8, and trunk.

The changed occured between revisions 162456 (2010-07-23: stop) and
1635293 (2010-08-24: infinite loop). I don't see why your use of FORALL
would be invalid, but I may miss some fine prints.

Cheers,

Dominique
Adams, Brainerd et al "Fortran 2003 Handbook" say specifically it's not valid when there are repeated indices. In the intended use as a parallel assignment, no notice need be taken of multiple assignments to an element.

--
Tim Prince


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