https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81416
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note the array is never allocated on the heap, it is either on the stack, or (e.g. without -frecursive/-fopenmp) it can be in allocated .bss or if initialized in .data section. For heap allocations you need to use dynamic allocation (allocatable array or pointer and use ALLOCATE on that).