PR c++/98646 - spurious -Wnonnull calling a member on the result of static_cast
authorMartin Sebor <msebor@redhat.com>
Mon, 25 Jan 2021 19:41:28 +0000 (12:41 -0700)
committerMartin Sebor <msebor@redhat.com>
Mon, 25 Jan 2021 19:41:28 +0000 (12:41 -0700)
commitd6f1cf644c45b76a27b6a6869dedaa030e3c7570
tree099882d59ed8681df57417ddd194bc67af3039cf
parent7d54cccad332074d5fb81123796239f0f61b11a7
PR c++/98646 - spurious -Wnonnull calling a member on the result of static_cast

gcc/c-family/ChangeLog:

PR c++/98646
* c-common.c (check_nonnull_arg): Adjust warning text.

gcc/cp/ChangeLog:

PR c++/98646
* cvt.c (cp_fold_convert): Propagate TREE_NO_WARNING.

gcc/ChangeLog:

PR c++/98646
* tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.

gcc/testsuite/ChangeLog:

PR c++/98646
* g++.dg/warn/Wnonnull5.C: Adjust text of an expected warning.
* g++.dg/warn/Wnonnull10.C: New test.
* g++.dg/warn/Wnonnull9.C: New test.
gcc/c-family/c-common.c
gcc/cp/cvt.c
gcc/testsuite/g++.dg/warn/Wnonnull10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wnonnull5.C
gcc/testsuite/g++.dg/warn/Wnonnull9.C [new file with mode: 0644]
gcc/tree-ssa-ccp.c