https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117329
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I can't reproduce the warning for Wnull-dereference but I do get a warning for -O2 -Warray-bounds that has the same line as what you reported.