https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101918
--- Comment #21 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> --- After long poking with gdb the tree t1 and t2 structures in lto-symtab.c:warn_type_compatibility_p() just before "lev |5" is returned, it looks like trees are are almost identical except for t1->decl_common.off_align == 1 vs 2. This looks suspicious since these are in call to already type/rank specific runtime library function _gfortran_reshape_r8(). Sadly the lto-dump(1) tool is unable to dump type information about called functions arguments. Looking at gcc/fortran/intrinsic.c it is seen that -fdefault-real-* -fdefault-integer-* options have same effect as -freal-M-real-N or -finteger-M-integer-N options. This does not look intentional as this breaks use of certain (more archaic forms) intrinsics with variables and numeric constants that have explicit kinds.