Re: C++ PATCH to fix ICE with suggestions (PR c++/84537)

2018-02-26 Thread Jason Merrill
OK. On Mon, Feb 26, 2018 at 4:44 AM, Marek Polacek wrote: > Here error_mark_node leaks all the way to edit_distance_traits::get_string > which crashed, so let's not try to give a suggestion for an error node in > the first place. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > 2018-

C++ PATCH to fix ICE with suggestions (PR c++/84537)

2018-02-26 Thread Marek Polacek
Here error_mark_node leaks all the way to edit_distance_traits::get_string which crashed, so let's not try to give a suggestion for an error node in the first place. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2018-02-26 Marek Polacek PR c++/84537 * name-lookup.c (su