Intel Fortran accept a wrong do-concurrent construct

Intel Fortran accept a wrong do-concurrent construct

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"

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

Thank you for letting us know.

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

                            --Lorri

 

Leave a Comment

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