https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86210
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Jun 20 16:08:14 2018 New Revision: 261812 URL: https://gcc.gnu.org/viewcvs?rev=261812&root=gcc&view=rev Log: PR c++/86210 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete comment. * g++.dg/warn/Wnonnull4.C: New test. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/warn/Wnonnull4.C Modified: branches/gcc-8-branch/gcc/c-family/ChangeLog branches/gcc-8-branch/gcc/c-family/c-common.c branches/gcc-8-branch/gcc/testsuite/ChangeLog