Re: [PATCH] c++: Fix ICE with lambda in operator function [PR93597]

2020-02-05 Thread Jason Merrill
On 2/5/20 4:31 PM, Marek Polacek wrote: If we are going to use get_first_fn let's make sure we operate on is_overloaded_fn, as the rest of the codebase does. Bootstrapped/regtested on x86_64-linux, ok for trunk? PR c++/93597 - ICE with lambda in operator function. * name-lookup.

[PATCH] c++: Fix ICE with lambda in operator function [PR93597]

2020-02-05 Thread Marek Polacek
If we are going to use get_first_fn let's make sure we operate on is_overloaded_fn, as the rest of the codebase does. Bootstrapped/regtested on x86_64-linux, ok for trunk? PR c++/93597 - ICE with lambda in operator function. * name-lookup.c (maybe_save_operator_binding): Check is_