https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66103
--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I committed the patch to block debug info for slim LTO. This testcase will need -ffat-lto-objects to reproduce. I suppose the practical approach is to allow the mismatch here with flat_fat_lto_objects && !in_lto_p with the explanation that free lang data partially clears it.