diff options
author | Martin Sebor <msebor@redhat.com> | 2020-07-06 15:23:37 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2020-07-06 15:23:37 -0600 |
commit | 67a493a0b9e7ce6caba4b8bedf1f3295e477ec00 (patch) | |
tree | 952e9ccb0ffa2e3f8c2e190f2cdc389a2085e2b8 /gcc/c/c-parser.c | |
parent | 6e1c9715b3142bc09e313c0d4b196694ab7ae153 (diff) | |
download | gcc-67a493a0b9e7ce6caba4b8bedf1f3295e477ec00.zip gcc-67a493a0b9e7ce6caba4b8bedf1f3295e477ec00.tar.gz gcc-67a493a0b9e7ce6caba4b8bedf1f3295e477ec00.tar.bz2 |
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.
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions