https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110677
--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> --- I have proposed a fix on the mailing list: https://gcc.gnu.org/pipermail/gcc-patches/2023-August/627379.html ...and also posted it to the Fortran mailing list: https://gcc.gnu.org/pipermail/fortran/2023-August/059687.html