https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69497
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- The patch in comment 3 also fixes the first test in pr69498 comment 0, but not the tests containing submodule which gives the following ICE pr69498_1.f90:3:19: submodule (m) sm 1 Error: Unexpected SUBMODULE statement at (1) f951: internal compiler error: in resolve_assoc_var, at fortran/resolve.c:8099