Re: [PATCH] c++: Handle COMPOUND_EXPRs in ocp_convert [PR94339]

2020-03-26 Thread Jason Merrill via Gcc-patches
On 3/26/20 3:13 PM, Jakub Jelinek wrote: Hi! My recent change to get_narrower/warnings_for_convert_and_check broke the following testcase, warnings_for_convert_and_check is upset that expr is a COMPOUND_EXPR with INTEGER_CST at the rightmost operand, while result is a COMPOUND_EXPR with a NOP_EX

[PATCH] c++: Handle COMPOUND_EXPRs in ocp_convert [PR94339]

2020-03-26 Thread Jakub Jelinek via Gcc-patches
Hi! My recent change to get_narrower/warnings_for_convert_and_check broke the following testcase, warnings_for_convert_and_check is upset that expr is a COMPOUND_EXPR with INTEGER_CST at the rightmost operand, while result is a COMPOUND_EXPR with a NOP_EXPR of INTEGER_CST at the rightmost operand,