https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118337
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:c5e71d22d632889860ef079d4b0bff21eef8a660 commit r15-6724-gc5e71d22d632889860ef079d4b0bff21eef8a660 Author: Jakub Jelinek <ja...@redhat.com> Date: Thu Jan 9 08:25:49 2025 +0100 fortran: Accept "15" modules for compatibility [PR118337] Based on the comments in the PR, I've tried to write a patch which would try to keep backwards compatibility with the GCC 11-14 *.mod files. This means reordering the *.def files, so that the entries present already in GCC 11-14 come before the ones new in GCC 15, and tweaking modules.cc such that it can accept that ordering and while it has a newer MOD_VERSION, it accepts even the previous one when loading modules. 2025-01-09 Jakub Jelinek <ja...@redhat.com> PR fortran/118337 * module.cc (COMPAT_MOD_VERSIONS): Define. (use_iso_fortran_env_module): Don't assume all NAMED_INTCSTs come first followed by NAMED_UINTCSTs. (gfc_use_module): Accept also COMPAT_MOD_VERSIONS for compatibility. * iso-c-binding.def: Reorder entries so that the GCC 14 ones come before the ones new in GCC 15. * iso-fortran-env.def: Likewise.