https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918
--- Comment #10 from kargl at gcc dot gnu.org --- (In reply to Rimvydas (RJ) from comment #8) > If we can agree that use of -fdefault-real-8 -fdefault-double-8 with -flto > does not magically recompile intrinsic subroutines in runtime libgfortran.so > library, it looks like it is a frontend issue not providing correct > information for LTO. No, it is not a frontend issue. It is a user expectation issues. > $ gfortran -Wall -Wextra -flto -fdefault-real-8 -fdefault-double-8 -c bar.f90 > $ gfortran -Wall -Wextra -flto foo.f90 bar.o You need to use -fdefault-real-8 -fdefault-double-8 when compiling both files. How is the 2nd invocation of gfortran to know that your first invocation of gfortran used imcompatiable options?