https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100724
--- Comment #2 from Dave Love <fx at gnu dot org> --- The manual says not to use -flto with -fwhole-program. Is that misleading? I checked self-built gfortran 10.2.0 again, and it definitely works for me without -flto on Debian 10, but it fails with Red Hat devtoolset's 10.2.1 on RHEL7. Odd...