[Bug c++/61982] Optimizer does not eliminate stores to destroyed objects

avi@cloudius-systems.com gcc-bugzilla@gcc.gnu.org
Fri Aug 1 16:32:00 GMT 2014


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

--- Comment #3 from Avi Kivity <avi@cloudius-systems.com> ---
I observed this with non-trivial destructors as well.

In fact, something like:

X::~X() { i = 3; }

also emits a store.



More information about the Gcc-bugs mailing list