[Bug tree-optimization/111499] [13/14/15/16/17 Regression] -Wstringop-overread warning in std::vector<uint8_t> less operator< for __builtin_memcmp call

"gnu.ojxq8 at dralias dot com via Gcc-bugs" <[email protected]> Thu, 06 Aug 2026 07:09:12 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499

--- Comment #16 from maic <gnu.ojxq8 at dralias dot com> ---
pls ignore my previous comment:

While there is no provable UB in my godbolt repro, there is a plausible
nullptr-deref, so I guess GCC is arguably right to complain about this. (The
fix is to add the `[[noreturn]]` in the right place)