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

2018-04-19 Thread hyrosen at mail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61982 --- Comment #13 from hyrosen at mail dot com --- (In reply to Jonathan Wakely from comment #12) > The C++ standard. Specifically, [basic.life]. > > So the first memcmp call reuses the storage to create an array of unsigned &g

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

2018-04-18 Thread hyrosen at mail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61982 --- Comment #11 from hyrosen at mail dot com --- (In reply to Jakub Jelinek from comment #10) > (In reply to hyrosen from comment #9) > > The storage for an object can still be accessible after the object is > > destroyed. There

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

2018-04-18 Thread hyrosen at mail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61982 hyrosen at mail dot com changed: What|Removed |Added CC||hyrosen at mail dot com