https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40789
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Eric Gallager from comment #1) > did you discover this with cppcheck or by looking manually? Also does -fanalyzer catch this?