https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79095
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |msebor at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ugh, -Wstringop-overflow is enabled by default even without -Wall? That is just wrong. When it solely warns about __*_chk builtins known to overflow that is fine, but the other newly added warnings in this area should be only in -Wall or -Wextra or not enabled by default at all. This is yet another case showing why very late warnings after path isolation etc. are harmful. Sure, if foo doesn't grow the vector there will be UB in the resize, but there is nothing in the testcase that would show that is expected.