https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110644
--- Comment #23 from Kyle Shores <kyle.shores44 at gmail dot com> --- Alberto, I ended up making a PR last year which allowed tuv-x to compile with gcc 13 (https://github.com/NCAR/tuv-x/pull/53). This involved reordering use statements/moving them out of subroutine/function definitions and moving them to the top of the module. At this point, this is a bug that, if encountered again, I will work around. I don't have the time to come up with a minimal working example, especially since this seems to happen only in very specific cases.