Software Archive
Read-only legacy content
17060 Discussions

end-of-file error

Intel_C_Intel
Employee
712 Views
I just upgraded from 6.1 to 6.5 and a program that works fine under the 6.1 compilation does not work under a 6.5 compilation. It reads in data for awhile and then crashes with an "end-of-file during read" error. Is there anything that needs to be done to convert a 6.1 project to a 6.5 project??
0 Kudos
1 Reply
Intel_C_Intel
Employee
712 Views
Check the 6.5 release notes.

Quote:

In order to conform with clarified wording in the Fortran standard, the compiler has been changed so that when a READ statement encounters an end-of-file condition, and there is no END= specifier but there is an ERR= specifier, the ERR= branch is NOT taken. Similarly, if an end-of-record condition occurs but there is no EOR= specifier, an ERR= branch is not taken.
A further behavior change, to conform with the standard, has been implemented. If an EOF (or EOR) condition occurs and there is not an IOSTAT= or END= (or EOR= in the case of EOR) specifier, the program is terminated with an error message.


hth,
John
0 Kudos
Reply