https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53029
--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Mon May 29 19:17:57 2017 New Revision: 248577 URL: https://gcc.gnu.org/viewcvs?rev=248577&root=gcc&view=rev Log: 2017-05-29 Jerry DeLisle <jvdeli...@gcc.gnu.org> PR libgfortran/53029 * list_read.c (list_formatted_read_scala): Set the err return value to the common.flags error values. * gfortran.dg/read_5.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/read_5.f90 Modified: trunk/gcc/testsuite/ChangeLog trunk/libgfortran/ChangeLog trunk/libgfortran/io/list_read.c