https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101664
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Iain Buclaw from comment #0) > C++ constructors return void, even though the front-end semantic treats them > as implicitly returning `this'. But on some targets they actually do return this. You can check by targetm.cxx.cdtor_returns_this ().