https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104952
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Comment on attachment 52647 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52647 Tentative patch with test-cases, rationale and changelog Please change arr[5] = 1; to arr[5] = 42; or so also to test it is doing != 0 comparisons.