[Bug middle-end/98989] missing -Wfree-nonheap-object freeing std::strings over 15 bytes long

2021-02-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98989 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/98989] missing -Wfree-nonheap-object freeing std::strings over 15 bytes long

2021-02-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98989 --- Comment #2 from Martin Sebor --- Not having to annotate _M_create is also helpful when the call isn't inlined. For example, neither of the following functions is diagnosed because in both cases GCC emits a call equivalent to: std::__cxx1

[Bug middle-end/98989] missing -Wfree-nonheap-object freeing std::strings over 15 bytes long

2021-02-07 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98989 Martin Sebor changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Martin Seb