I have a simple file (C091G12.rrd) with two numerical fields for each line that can't correctly be read with a fortran code compiled with ifort.
It seems that the program (I extracted and simplified the relevant part in the attachment) fails to recognize the end of the file.
The issue is present with the following versions of the compiler:
1) On MacOS: ifort (IFORT) 17.0.1 20161013
2) Linux: ifort (IFORT) 18.0.0 20170811
On the other hand, the issue is not present with ifort (IFORT) 16.0.3 20160415 (Linux) or with gfortran.
An additional piece of the puzzle is that the file is read correctly if I slightly modify the file, e.g., by removing any of the lines or adding a trailing zero to any of the numbers.
I would also note that the file is automatically generated by a Python script within a pipeline that generates tens of these files every day and this is the first time that the fortran code fails to read it.
Best regards,
Davide