https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116701
--- Comment #4 from Hans-Peter Nilsson <hp at gcc dot gnu.org> --- (In reply to anlauf from comment #2) > Can you test if adding a line > > close(10, status="delete") > > before the > > end program memain > > fixes the issue? If so, such a fix is pre-approved; you can also ask Thomas. I considered that, and I'm pretty sure that'll help for the case at hand (the unsigned_22 test passes for the first run but fails subsequent runs for the same reason), but if the test fails before the "close"-line is reached (consider the multiple "stop"-lines), it wouldn't help.