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

Intel Fortran accept a wrong do-concurrent construct

mehdi__chinoune
Beginner
162 Views

According the Fortran standard:" A concurrent-limit or concurrent-step in a concurrent-control shall not contain a reference to
 any index-name in the concurrent-control-list in which it appears."

but Intel Fortran accept this program

PROGRAM TEST
   IMPLICIT NONE
   INTEGER :: I, J
  
  DO CONCURRENT(I=1:10, J=1:I) ! which equivalent to (I=1:10, J=1:10, J<=I)
    PRINT*,I,J
  END DO 

END PROGRAM

even when compiled with "/stand:f15 /warn:all"

0 Kudos
1 Reply
Lorri_M_Intel
Employee
162 Views

Thank you for letting us know.

This is now detected, and will be available in a future update

                            --Lorri

 

Reply