https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77400
--- Comment #2 from Sergey <saguryev.gnu at gmail dot com> --- Indeed, I missed that it was dynamically linked by default and system bundled ( older ) libfortran was used. Thus it's a problem in the original program which has hard-coded seed(12) as it had been a constant for years. So it's not a bug and may be closed as such. Thank you.