Hi,
I'm using ifort, and experiencing the file corruption when writing an unformatted binary.
ifort -V prints out "Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 17.0.4.196 Build 20170411"
Here is simple test code..
program test real*8 :: array(20000) array = 0d0 open(11,file='test.bin',form='unformatted') write(11) 'string' write(11) array close(11) end
compiling this code with compiler flag -convert big_endian and executing the program generates 'test.bin' unformatted binary file.
However, this output file seems to be corrupted.
When removing "write(11) 'string'" line in the code, the file is not corrupted.
When I compile the test code with lower version of ifort, the file is not corrupted.
Is it a compiler bug of this version of ifort, or is there any compiler flag I missed?