Re: C++ PATCH for c++/88857 - ICE with value-initialization of argument in template

2019-02-27 Thread Jason Merrill
On 2/27/19 4:22 PM, Marek Polacek wrote: build_value_init doesn't work in templates (for non-scalar/array types, anyway), so avoid this situation, much like in build_new_method_call_1. We're calling convert_like_real because when there's only one non-viable candidate function, build_new_function

C++ PATCH for c++/88857 - ICE with value-initialization of argument in template

2019-02-27 Thread Marek Polacek
build_value_init doesn't work in templates (for non-scalar/array types, anyway), so avoid this situation, much like in build_new_method_call_1. We're calling convert_like_real because when there's only one non-viable candidate function, build_new_function_call calls cp_build_function_call_vec to g