https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92100
--- Comment #4 from kargl at gcc dot gnu.org --- Here's a self-contained program. AFAICT, pos= has an effect only within the first record, and thereafter it is ignored. F2018, 12.3.3.4(4) gives a bulleted list of things that can cause problems for a user. My unsolicited advice: Don't mix stream access and formatted output. :(