https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82480
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Janne Blomqvist from comment #3) > Actually, libgfortran already has a version of stat with integer(kind=int64) > arguments. If you compile with -fdefault-integer-8 you get that one, and the > expected output. > > However, there seems to be no way of calling the int64 version without > redefining the default integer kind. That should be fixable. We could, for example, add a KIND parameter to STAT. Sounds relatively straightforward.