[Bug c++/91859] Optnization -O2 removes valid and necessary code

2019-09-23 Thread mingodad at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91859 --- Comment #3 from Domingo Alvarez --- Thank you ! I was suspecting it after report this problem and added a destructor to the sample and then the code behaves as you describe. Sorry by the noise and thank you again !

[Bug c++/91859] Optnization -O2 removes valid and necessary code

2019-09-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91859 Jonathan Wakely changed: What|Removed |Added Keywords||wrong-code Status|RESOLVED

[Bug c++/91859] Optnization -O2 removes valid and necessary code

2019-09-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91859 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---