Re: [C++ PATCH] Fix delayed folding -Wnonnull regression (PR c++/86210)

2018-06-20 Thread Jason Merrill
On Wed, Jun 20, 2018 at 10:32 AM, Jakub Jelinek wrote: > Hi! > > This patch fixes a regression caused by C++ delayed folding, when > check_nonnull_arg is called, the arguments aren't folded yet and so unlike > GCC 4.8 and earlier we don't report -Wnonnull warning unless the argument is > literal N

[C++ PATCH] Fix delayed folding -Wnonnull regression (PR c++/86210)

2018-06-20 Thread Jakub Jelinek
Hi! This patch fixes a regression caused by C++ delayed folding, when check_nonnull_arg is called, the arguments aren't folded yet and so unlike GCC 4.8 and earlier we don't report -Wnonnull warning unless the argument is literal NULL without any folding. Fixed thusly, bootstrapped/regtested on x