Re: [PATCH] c++: Check null pointer deref when calling memfn in constexpr [PR102420]

2023-12-19 Thread Nathaniel Shead
On Mon, Dec 18, 2023 at 01:32:58PM -0500, Jason Merrill wrote: > On 12/17/23 16:51, Nathaniel Shead wrote: > > Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? > > > > An alternative approach for the lambda issue would be to modify > > 'maybe_add_lambda_conv_op' to not pass a null

Re: [PATCH] c++: Check null pointer deref when calling memfn in constexpr [PR102420]

2023-12-18 Thread Jason Merrill
On 12/17/23 16:51, Nathaniel Shead wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? An alternative approach for the lambda issue would be to modify 'maybe_add_lambda_conv_op' to not pass a null pointer, but I wasn't sure what the best approach for that would be. I don't

[PATCH] c++: Check null pointer deref when calling memfn in constexpr [PR102420]

2023-12-17 Thread Nathaniel Shead
Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? An alternative approach for the lambda issue would be to modify 'maybe_add_lambda_conv_op' to not pass a null pointer, but I wasn't sure what the best approach for that would be. -- >8 -- Calling a non-static member function on a n