https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118557
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|-Wstringop-overflow false |-Wstringop-overflow false |positive for span on |positive for span on |array/string_view |array/string_view due to | |the vectorizer --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- -fno-tree-vectorize hides the warning. The size of 8 gave me the hint that this was most likely the vectorizer.