https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104789
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the first loop is bounded roo Because of encode_uint16(temp_packets[0].data[i], &header[header_bytes]); Which is not in the reduced testcase.