[Bug c++/109548] Detect c_str() dangling problems

2023-04-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109548 --- Comment #3 from Jonathan Wakely --- (In reply to Richard Biener from comment #2) > Btw, is there an API to std::move the (possibly) allocated string out of > the std::string and make it available as C string pointer? No, ownership always be

[Bug c++/109548] Detect c_str() dangling problems

2023-04-19 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109548 Richard Biener changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org,

[Bug c++/109548] Detect c_str() dangling problems

2023-04-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109548 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2023-04-19 Status|UNCONFI

[Bug c++/109548] Detect c_str() dangling problems

2023-04-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109548 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement