https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119185

--- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> What if the function is not called indirectly, wouldn't the implicit object
> ref just be garbage?
> 
> My response to this is "just use C++". Then you have functions which are
> guaranteed by the language to be "member" functions, so always have an
> object ref, and it's guaranteed to be available with portable spelling
> ('this').

I agree, and with -fno-rtti -fno-exceptions I cannot see why C++ cannot be
used, even for a tiny kernel.

Reply via email to