https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125887
--- Comment #2 from Roman Rotko <superroman652 at gmail dot com> ---
Just checked with simple { } scope and behavior is exactly the same.
But new mystery appears: why doesn't it deallocate stack space with
optimizations enabled or known size?
