https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44265
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > Variant: If one adds a > subroutine test() > print *, get(1) > end subroutine test > in the module itself, one gets an ICE: > > foo.f90:18:0: internal compiler error: in gfc_generate_function_code, > at fortran/trans-decl.c:4378 The ICE is still there with the patch. It is at the same location as for the test in comment 2 of pr44348 and the one in pr66494.