https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107874
--- Comment #23 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- John, Your original case in Comment 1 now gives: $ gfc original.f90 $ ./a.out tstuff fstuff T tstuff fstuff F So I think it is OK, Harald's test case has function calls embedded in the print statements within the main program and those functions have embedded print statements themselves to the same output device which is stdout and this is not allowed per the Fortran standard. So the issue is only in the test case he previously committed and it is now fixed.