https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96021

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:67a493a0b9e7ce6caba4b8bedf1f3295e477ec00

commit r11-1860-g67a493a0b9e7ce6caba4b8bedf1f3295e477ec00
Author: Martin Sebor <mse...@redhat.com>
Date:   Mon Jul 6 15:23:37 2020 -0600

    Exclude calls to variadic lambda stubs from -Wnonnull checking (PR
c++/95984).

    Resolves:
    PR c++/95984 - Internal compiler error: Error reporting routines re-entered
in -Wnonnull on a variadic lamnda
    PR c++/96021 - missing -Wnonnull passing nullptr to a nonnull variadic
lambda

    gcc/c-family/ChangeLog:

            PR c++/95984
            * c-common.c (check_function_nonnull): Avoid checking syntesized
calls
            to stub lambda objects with null this pointer.
            (check_nonnull_arg): Handle C++ nullptr.

    gcc/cp/ChangeLog:

            PR c++/95984
            * call.c (build_over_call): Check calls only when tf_warning is
set.

    gcc/testsuite/ChangeLog:

            PR c++/95984
            * g++.dg/warn/Wnonnull6.C: New test.

Reply via email to