https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185
--- Comment #6 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Uroš Platiše from comment #5) > My assumption was that the object is anyway in the regs and the mere issue > would be accessing its value. You assumption is incorrect as I've already said. It's just impossible to implement "__gcc_object_ref__". The grammar you want may be implemented as some magical attribute as Andrew proposed, but then it'll be MUCH more debatable than just using C++.