On Monday, 20 September 2021 at 18:49:12 UTC, Steven Schveighoffer wrote: > It's just class references that the compiler seems to not care > about ensuring stack references stay alive. > > Should it be this way? Hmm. No opinion on 'should', but you ought to be able to insert a volatileRead late in the function in order to ensure the object stays alive.