[Bug d/101664] d: Return the correct value for C++ constructor calls

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 29 15:42:34 GMT 2021


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 ().


More information about the Gcc-bugs mailing list