https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95052
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2020-05-11 Keywords| |missed-optimization --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I'm not sure what you describe as padding is padding. Instead it's valid to access all elements of the array you declare and thus it must be initialized. What could be done is elide zero-padding parts to a memset() call.