https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70594
--- Comment #19 from Nathan Sidwell <nathan at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #17) > I still don't understand why/how this is causing problems, if > -fcompare-debug only cares about the order of decls. The copied decls > shouldn't appear anywhere in the output, and other decls should still have > the same order. DECL_UID escapes into the emitted names, as the fragment Jakub's just pointed to shows. We perturb the DECL_UID's allocated, as I describe in comment 7. Hope that helps.