https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70058
--- Comment #8 from Paul <ranftmaps at hotmail dot com> --- I downloaded the latest version I could find from https://sourceforge.net/projects/mingw-w64/?source=typ_redirect. It is version 5.3.0. The problem does not exist with version 5.3.0. My apologies for not finding the latest gfortran version earlier.