https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68358
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > We are getting a similar issue while linking a program with GCC and > without '-flto' switch. We enable 'lto' when configuring languages, > which in turn enables post ld processing inside collect2. This was done > as part of the bug #61352 patch. I am not sure to understand the comment. Do you mean that your build is configured to use '-flto' by default? Do you have a non-fortran reproducer? If yes, could you please post it?