https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114618
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <jvdeli...@gcc.gnu.org>: https://gcc.gnu.org/g:cfed99751c1a3b93ca66451eb1b62271e682f927 commit r15-7394-gcfed99751c1a3b93ca66451eb1b62271e682f927 Author: Jerry DeLisle <jvdeli...@gcc.gnu.org> Date: Wed Jan 29 13:40:59 2025 -0800 Fortran: Fix handling of the X edit descriptor. This patch is a partial fix of handling of X edit descriptors when combined with certain T edit descriptors. PR libfortran/114618 libgfortran/ChangeLog: * io/transfer.c (formatted_transfer_scalar_write): Change name of vriable 'pos' to 'tab_pos' to improve clarity. Add new variable next_pos when calculating the maximum position. Update the calculation of pending spaces. gcc/testsuite/ChangeLog: * gfortran.dg/pr114618.f90: New test.