https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103043
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- You can flush the output before program end. gfortran uses unit 6 as its standard output number, so inserting the statement flush 6 should do the trick.