Re: [PATCH] avoid -Wnonnull for lambda stubs (PR c++/95984)

2020-07-03 Thread Jason Merrill via Gcc-patches
On 7/2/20 11:21 AM, Martin Sebor wrote: On 7/1/20 3:25 PM, Jason Merrill wrote: On 7/1/20 3:31 PM, Martin Sebor wrote: The attached patch avoids null pointer checking for the first argument to calls to the member operator() of lambda objects emitted by the C++ front end.  This avoids both the

Re: [PATCH] avoid -Wnonnull for lambda stubs (PR c++/95984)

2020-07-02 Thread Martin Sebor via Gcc-patches
On 7/1/20 3:25 PM, Jason Merrill wrote: On 7/1/20 3:31 PM, Martin Sebor wrote: The attached patch avoids null pointer checking for the first argument to calls to the member operator() of lambda objects emitted by the C++ front end.  This avoids both the spurious -Wnonnull warnings for such

Re: [PATCH] avoid -Wnonnull for lambda stubs (PR c++/95984)

2020-07-01 Thread Jason Merrill via Gcc-patches
On 7/1/20 3:31 PM, Martin Sebor wrote: The attached patch avoids null pointer checking for the first argument to calls to the member operator() of lambda objects emitted by the C++ front end.  This avoids both the spurious -Wnonnull warnings for such calls as well as the ICE reported in the bug.

[PATCH] avoid -Wnonnull for lambda stubs (PR c++/95984)

2020-07-01 Thread Martin Sebor via Gcc-patches
The attached patch avoids null pointer checking for the first argument to calls to the member operator() of lambda objects emitted by the C++ front end. This avoids both the spurious -Wnonnull warnings for such calls as well as the ICE reported in the bug. In addition, the patch also avoids