Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26735 Discussions

Intel Fortran accept a wrong do-concurrent construct

mehdi__chinoune
Beginner
95 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
95 Views

Thank you for letting us know.

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

                            --Lorri

 

Reply