https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107950
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Richard Biener from comment #2) > I wonder why the linker complains? Isn't this like > > t.h > > class X { foo (); bar (); baz (); }; > > and splitting the foo/bar/baz implementations to three TUs and then linking > two of them partially? I've just tried using -flto-partition=one and it hasn't helped me.