https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102606
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Yes, even though the variable is in a local not executed scope the allocation of stack space happens statically at function scope. If you want this not to happen you can use alloca() for allocation.