Hi,
I get a strange behaviour at reading a binary file. A simple test case is attached.
If the data from the file is read with an implied-do-loop (line 37) AND the code is compiled in debug (-g), the read is successful and no error is returned.
On the other hand, if the same code is compiled in opt-mode OR if the loop is written explicitly like in line 39-42, an error is returned that the end-of-file is reached.
It should be mentioned that this piece of code worked for over 20 years without any problems and several other compilers including older versions of the ifort.
Could anyone explain the behavior to me and give me a solution how to use the code also in the opt-version?
Best Regards
Hendrik
Compiler: ifort (IFORT) 15.0.2 20150121, IA-32, OpenSUSE