Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

interdependence of indices in DO CONCURRENT

Espen_M_
Beginner
494 Views

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

[fortran]

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

[/fortran]

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?

0 Kudos
2 Replies
FortranFan
Honored Contributor III
494 Views

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.

0 Kudos
Steven_L_Intel1
Employee
494 Views

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

0 Kudos
Reply