https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98217
--- Comment #10 from Martin Uecker <muecker at gwdg dot de> --- (for C++ compatibility, there is: -Wc++XX-compat ) So since Xmas is coming: - I would also like an option to allocate VLAs of unbounded size larger than X on the heap. - Better code generation for VLAs. Maybe VLAs of small bounded size could be automatically transformed into regular arrays for the purpose of code generation. IIRC, Linux kernel replaced some VLAs on the stack with fixed-sized buffers on the stack. But this increases stack size and reduces type safety.