[Bug c++/114379] stringop-overflow warning on C++ code with -O2 (or -O1 -fexpensive-optimizations)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114379 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2024-03-18 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Jonathan Wakely --- (In reply to Richard Biener from comment #1) > The diagnostic hints at jump threading producing an access to nullptr. Yes, I saw this happening with std::atomic recently too - I can't remember if I still have the code to reproduce it.
[Bug c++/114379] stringop-overflow warning on C++ code with -O2 (or -O1 -fexpensive-optimizations)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114379 Richard Biener changed: What|Removed |Added Keywords||diagnostic Blocks||88443 --- Comment #1 from Richard Biener --- The diagnostic hints at jump threading producing an access to nullptr. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 [Bug 88443] [meta-bug] bogus/missing -Wstringop-overflow warnings