interdependence of indices in DO CONCURRENT

interdependence of indices in DO CONCURRENT

The following DO statement compiles on IFORT 13.1.3.198 [IA-32]:

DO CONCURRENT (i = 1:SIZE(arr1d), j = 1:i-1)

According to the F08 draft (N1830), C739 it is not permitted to

reference to any index-name in the forall-triplet-spec-list in which it appears

, and if I use the same forall-header in a FORALL statement the error is catched.

Is this allowed or not?

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Not allowed going strictly by the standard - don't know if Intel Fortran has an extension that allows this.  Do you get error(s) if the standards checking is turned on?  If not, then it seems like a compiler bug.  Did you try compiler 14, update 2?  Possibly fixed in there.

Still a bug - escalated as issue DPD200254821. Not a deliberate extension.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today