Hi, by running Valgrind on a program compiled with Intel Fortran (ifort (IFORT) 16.0.0 20150815) I find memory leaks after each internal write operation, and this is (I guess) the cause for malloc crashes of the program. I read here https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/518269 that this was a known problem, apparently fixed in ifort 15. It may be that this problem reappeared with ifort 16?
I'll write a test program asap.
This is fixed in the current release (16.0.2).
For more complete information about compiler optimizations, see our Optimization Notice.