https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104026
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- Input file is: https://sourceware.org/git/?p=newlib-cygwin.git;a=history;f=newlib/libc/stdlib/ecvtbuf.c;hb=HEAD Compiled with amdgcn-amdhsa-gcc -g -O2 -ffunction-sections I tried to reduce it – which kind of worked. Except: The resulting file did no longer consistently ICE but only every 10th (or so) time. Thus, I have not attached it. In any case, that indicates some memory corruption issue.