https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41091
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I really doubt there is a good solution for this because of what c++ calls vague linkage. Clang's solution is broken too.
pinskia at gcc dot gnu.org via Gcc-bugs Wed, 18 May 2022 10:03:59 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41091
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I really doubt there is a good solution for this because of what c++ calls vague linkage. Clang's solution is broken too.