https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65504
--- Comment #12 from Sebastian Beyer <sebastian.beyer at riseup dot net> --- Hi, I'm the author of the original post on stackoverflow. I am not sure if this is relevant, but I can suppress the error if I add an arbitrary print statement at the end of the function. Also changing the number of STRLEN can make it work again. For example STRLEN=255 works, also 254 and 257 do, but 1024 does not.