https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114241
--- Comment #2 from Jan Hubicka <hubicka at ucw dot cz> --- This indeed looks like bug caused by fact that the class is keyed into one of the two units. Outputting translation unit names is unfortunately hard, since they are object files and often comming from .a archive where we know only offset, but no original file name or something. I had patch which passed through original filename attached to TRALSATION_UNIT_DECL, but it also had problems, i.e. printing relative filenames from wrong directory.