Wrong iostat for End-Of-File in read statement for a coarray image greater than one

Wrong iostat for End-Of-File in read statement for a coarray image greater than one

Hi,

I think I've found a bug in the new ifort version 14.0.0 related to coarrays.

If an EOF is encountered by an image greater than the 1st one during a read statement with the iostat argument provided, then the value stored in the iostat variable is sometimes 781 instead of 1.
A simple workaround is to treats the 781 value as an EOF status using: if ( ios == 781 ) exit

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

How amusing!  Thanks - reproduced and escalated as issue DPD200247915. I tested EOR and it was fine.

Steve - Intel Developer Support

This was fixed in Update 2.

Steve - Intel Developer Support

Leave a Comment

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