https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102366
--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:d3db5b1d23cbe4e4569e688a6dbc8b5b2c38588e commit r10-10140-gd3db5b1d23cbe4e4569e688a6dbc8b5b2c38588e Author: Harald Anlauf <anl...@gmx.de> Date: Fri Sep 17 21:45:33 2021 +0200 Fortran - (large) arrays in the main shall be static gcc/fortran/ChangeLog: PR fortran/102366 * trans-decl.c (gfc_finish_var_decl): Disable the warning message for variables moved from stack to static storange if they are declared in the main, but allow the move to happen. gcc/testsuite/ChangeLog: PR fortran/102366 * gfortran.dg/pr102366.f90: New test. (cherry picked from commit 51166eb2c534692c3c7779def24f83c8c3811b98)