https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97956
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to G. Steinmetz from comment #0) > typedef __INT8_TYPE__ int8_t; > typedef __INT32_TYPE__ int32_t; > extern void* memchr (const void*, int, long); For the record, the signature above is wrong (the third parameter should be size_t not long), and that's what caused the ICE. (So I think this should really be ice-on-invalid-code since it has a bad declaration of memchr).