https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121044
--- Comment #2 from Jan Palus <jpalus+gcc at fastmail dot com> --- Some weird observations from reproducer minimazation: - memcpy() needs to be there otherwise it's not reproduced (although it's completely unrelated?) - memcpy() needs to copy into array which is struct's member. plain array does not trigger issue - struct with array member needs to be passed as function argument