https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68358
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Created attachment 36829 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36829&action=edit Reduced test case for gfortran.dg/minlocval_3.f90 With the attached test the warnings with '-g -flto' are warning: (x86_64) could not find object file symbol for symbol _A.28.3542 warning: (x86_64) could not find object file symbol for symbol _A.36.3560 warning: (x86_64) could not find object file symbol for symbol _A.44.3580 warning: (x86_64) could not find object file symbol for symbol _A.50.3594 warning: (x86_64) could not find object file symbol for symbol _A.56.3608 warning: (x86_64) could not find object file symbol for symbol _A.62.3622 warning: (x86_64) could not find object file symbol for symbol _A.68.3636 warning: (x86_64) could not find object file symbol for symbol _A.74.3650 warning: (x86_64) could not find object file symbol for symbol _A.80.3664 warning: (x86_64) could not find object file symbol for symbol _A.86.3678 warning: (x86_64) could not find object file symbol for symbol _A.92.3690 warning: (x86_64) could not find object file symbol for symbol _A.102.3710 warning: (x86_64) could not find object file symbol for symbol _A.123.3779 warning: (x86_64) could not find object file symbol for symbol _A.131.3805 warning: (x86_64) could not find object file symbol for symbol _A.154.3862 warning: (x86_64) could not find object file symbol for symbol _A.164.3882 warning: (x86_64) could not find object file symbol for symbol _A.174.3905 warning: (x86_64) could not find object file symbol for symbol _A.190.3938 warning: (x86_64) could not find object file symbol for symbol _A.206.3971 warning: (x86_64) could not find object file symbol for symbol _A.222.4004 warning: (x86_64) could not find object file symbol for symbol _A.238.4034 warning: (x86_64) could not find object file symbol for symbol _A.250.4057 These warnings disappear if I remove a single 'if'.