https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61982
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> --- (In reply to Avi Kivity from comment #3) > I observed this with non-trivial destructors as well. > > In fact, something like: > > X::~X() { i = 3; } > > also emits a store. Not for me, at least at -O2.