https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109788
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- What remains is some Fortran FE change. The function seems to be called with 6 arguments that the runtime actually expects, so there is some chance that it works, but some of the arguments have incompatible types (integer(kind=8) vs. GFC_INTEGER_4) and the FUNCTION_TYPE contains just 5 arguments rather than 6.