https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108923
--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> ---
Here is a small reproducer by the way:
program p
implicit none
call s(0)
contains
subroutine s(i)
integer :: i
end subroutine s
end program p
