https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101664
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> --- (In reply to Andrew Pinski from comment #4) > (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 (). Ah, I didn't see that was available for all front-ends. I had assumed it was just C++.