https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112635
Agostino Sarubbo <ago at gentoo dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Agostino Sarubbo <ago at gentoo dot org> --- (In reply to Richard Biener from comment #1) > Yep, GCC fixes the code for you by eliding 'buf' With a tool like https://godbolt.org/ I now get what you mean, so I'm closing this as invalid by myself