Watch out for these Gotchas in Fortran90 and later versions.
http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html
https://www.fortran90.org/src/gotchas.html