https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83613
--- Comment #10 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Sat Dec 30 02:14:34 2017 New Revision: 256041 URL: https://gcc.gnu.org/viewcvs?rev=256041&root=gcc&view=rev Log: 2017-12-29 Jerry DeLisle <jvdeli...@gcc.gnu.org> Backport from trunk PR libgfortran/83613 * io/unit.c (init_units): Don't forget to unlock the unit locks after being inserted. Modified: branches/gcc-7-branch/libgfortran/ChangeLog branches/gcc-7-branch/libgfortran/io/unit.c