https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98411
Ryo Furue <ryofurue at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ryofurue at gmail dot com --- Comment #3 from Ryo Furue <ryofurue at gmail dot com> --- (In reply to Ignacio Fernández Galván from comment #2) > May I add that it's probably similarly pointless to issue this warning for > large arrays in a module (as module variables, not in a procedure)? Below is an example, which gives the warning in question with "-Wall" for a module variable. (I thought that adding SAVE were a recipe to ensure static allocation, and I've been frantically searching the Internet to understand why gfortran tries to allocate the module variable on the stack.) I use GNU Fortran (Homebrew GCC 10.2.0_4) 10.2.0 on macOS 11.3.1 . ```` module try real(8), save:: a(10000000) contains subroutine initmodule a(1) = 3.14 end subroutine initmodule end module try ````