[Bug c++/97435] Lifetime of temporaries not correctly extending when optiimzation are enabled

2020-10-15 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97435 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/97435] Lifetime of temporaries not correctly extending when optiimzation are enabled

2020-10-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97435 --- Comment #1 from Richard Biener --- I believe the A(5) object doesn't live beyond the stmts lifetime and thus this is invalid.