Re: C++ PATCH to fix ICE-on-invalid with ?: (PR c++/84138)

2018-01-31 Thread Jason Merrill
OK. On Wed, Jan 31, 2018 at 6:28 AM, Marek Polacek wrote: > This fixes an ICE-on-invalid, where we're passing error_mark_node to > useless_type_conversion_p which can't handle that. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > 2018-01-31 Marek Polacek

C++ PATCH to fix ICE-on-invalid with ?: (PR c++/84138)

2018-01-31 Thread Marek Polacek
This fixes an ICE-on-invalid, where we're passing error_mark_node to useless_type_conversion_p which can't handle that. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2018-01-31 Marek Polacek PR c++/84138 * cp-gimplify.c (cp_fold): Check if X is an