https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88061
--- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> --- N.B. that commit just naively fixes the attribute propagation issue which seems to make at least simple examples work as expected. The question of section + comdat handling could IIUC be demonstrated using non-template inline functions/variables as well and so is really an orthogonal issue I think?