https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93736
--- Comment #2 from Thomas Henlich <thenlich at gcc dot gnu.org> --- I don't know why the Fortran compiler doesn't treat all files as free-form Fortran source files, unless they have a known extension indicating otherwise.