Re: [PATCH] c++: Don't synthesize sfk_comparison method multiple times [PR94907]

2020-05-06 Thread Jason Merrill via Gcc-patches
On 5/5/20 3:15 AM, Jakub Jelinek wrote: Hi! On the following testcase we ICE, because synthesize_method is called twice on the same sfk_comparison method fndecl, the first time it works fine because start_preparsed_function in that case sets both current_function_decl and cfun, but second time i

[PATCH] c++: Don't synthesize sfk_comparison method multiple times [PR94907]

2020-05-05 Thread Jakub Jelinek via Gcc-patches
Hi! On the following testcase we ICE, because synthesize_method is called twice on the same sfk_comparison method fndecl, the first time it works fine because start_preparsed_function in that case sets both current_function_decl and cfun, but second time it is called it only sets the former and ke