https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119136
kargls at comcast dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargls at comcast dot net
--- Comment #2 from kargls at comcast dot net ---
I believe it's a bug in the user's program.
Fortran 2023, 12.12, Restrictions on input/output statements
An input/output statement that is executed while another input/output
statement is being executed is a recursive input/output statement. A
recursive input/output statement shall not identify an external unit
that is identified by another input/output statement being executed
except that a child data transfer statement may identify its parent
data transfer statement external unit.
The exception for parent/child involves user-defined IO, which does
not occur in the example. This is not a numbered constraint, and
it may be difficult to detect the recursive IO.