https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80484
--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- As an example of what I just said: $ gfc pr80484.f03 f951: internal compiler error: in gfc_match_use, at fortran/module.c:689 With no module defined. This is an unrelated bug I just stumbled on... with your example the original post here.