https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70594
--- Comment #17 from Jason Merrill <jason at gcc dot gnu.org> --- 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.