https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86210
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jun 25 17:54:30 2018 New Revision: 262102 URL: https://gcc.gnu.org/viewcvs?rev=262102&root=gcc&view=rev Log: Backported from mainline 2018-06-20 Jakub Jelinek <ja...@redhat.com> 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-6-branch/gcc/testsuite/g++.dg/warn/Wnonnull4.C Modified: branches/gcc-6-branch/gcc/c-family/ChangeLog branches/gcc-6-branch/gcc/c-family/c-common.c branches/gcc-6-branch/gcc/testsuite/ChangeLog