[Bug c/125887] VLAs inside statement expression leaks stack space

superroman652 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 18 18:37:32 GMT 2026


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?


More information about the Gcc-bugs mailing list