I have recently upgraded my Intel compiler from DVF 6.6a to Intel Compiler 13 (Visual Fortran Compiler XE 126.96.36.199 [IA-32].
And I now have following problem:
This simple read statement keeps returning an IOSTAT = -1. Telling me that I am at the end of the file.
When I run the debugger I don’t have any problems and the IOSTAT returns correct 0.
open(handle,file=outfile,status='OLD', iostat = ios)
rewind(handle, iostat = ios1)
write(66,*) 'rewind status: ',ios1
read(handle,'(a256)', iostat = ios, err=920) XML_line
write(66,*) 'After read: ',ios
write(66,*) 'xml_line: ', xml_line
Is this a problem you have heard about before?
Thanks a lot for your help.
Johnson Controls Denmark