On 2/8/24 1:03 PM, Harald Anlauf wrote:
Dear all,
the attached patch improves error recovery when we encounter an
array constructor where a unary operator (e.g. minus) is applied
and -frange-check is active. The solution is not to terminate
early in that case to avoid inconsistencies between check_result
and reduce_unary when such a situation occurs.
(There might be similar issues for binary operators, not treated
here.)
Regtested on x86_64-pc-linux-gnu. OK for mainline?
The ICE/memory corruption is actually a 10+ regression.
Do we need a backport?
Thanks,
Harald
Hi Harald,
This patch looks OK.
Thanks,
Jerry