Fortran 2003 defines the FLUSH statement (semantics same as for the other file positioning statements BACKSPACE, REWIND, ENDFILE).
Note that gfortran already provides a flush intrinsic subroutine and function (g77 compatibility). -- Summary: Implement FLUSH statement Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: fortran AssignedTo: jblomqvi at cc dot hut dot fi ReportedBy: jblomqvi at cc dot hut dot fi CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22390