https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109609
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > Note strcpy arguments cannot be overlapping if the dst overlaps with the > src, then the behavior is undefined. I think you are hitting that undefined > behavior here. I take that back, I read the source incorrectly at the time.