https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100684
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Martin Sebor <mse...@gcc.gnu.org>: https://gcc.gnu.org/g:ca0bc927103f5408f4812a3ad65d2d02a37840b2 commit r11-8603-gca0bc927103f5408f4812a3ad65d2d02a37840b2 Author: Martin Sebor <mse...@redhat.com> Date: Thu Jun 17 12:01:38 2021 -0600 PR middle-end/100684 - spurious -Wnonnull with -O1 on a C++ lambda gcc/ChangeLog: PR middle-end/100684 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda. gcc/testsuite/ChangeLog: PR middle-end/100684 * g++.dg/warn/Wnonnull13.C: New test. * g++.dg/warn/Wnonnull14.C: New test. * g++.dg/warn/Wnonnull15.C: New test.