https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101995
--- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #17) > This is a different issue where the C++ front-end does not add a fnspec for > the constructor (and deconstructor) with `targetm.cxx.cdtor_returns_this ()` > returning true. I will file this a sperate issue. Filed as PR 119699 .