https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81296
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Wed Aug 23 00:41:10 2017 New Revision: 251301 URL: https://gcc.gnu.org/viewcvs?rev=251301&root=gcc&view=rev Log: 2017-08-22 Jerry DeLisle <jvdeli...@gcc.gnu.org> Backport from trunk PR fortran/81296 * trans-io.c (get_dtio_proc): Add check for format label and set formatted flag accordingly. Reorganize the code a little. * gfortran.dg/dtio_12.f90: Update test. Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-io.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dtio_12.f90