https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107087
--- Comment #21 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ted Lyngmo from comment #20) > I noticed something very similar that started with 12.4 and that is still > there. I think it's a duplicate this ticket so I'll post here for you to > decide. No, that's nothing to do with the COW std::string and is a -Warray-bounds warning, not a -Wstringop-overread warning. There are lots of other bugs about -Warray-bounds though, see the meta-bug PR 56456.