The Release configuration of the coarray code below will work properly with 17 Update 4... but it will fail to produce the correct output with a Debug configuration (whether 32-bit or 64-bit).
PROGRAM COARRAY_BUG IMPLICIT NONE INTEGER :: I INTEGER :: BB(2)
Setting "Check Array and String Bounds" to "No" (option /check:[no]bounds) makes the problem disappear with the Debug configuration... but it should not be there in the first place.
Thank you for the report. I will investigate and let you know the status of this issue.
Best regards,
For more complete information about compiler optimizations, see our Optimization Notice.