allocatable arrays and -fmax-stack-var-size

2022-03-31 Thread Steve Kargl via Fortran
So, it seems that at some point in the past, the option -fmax-stack-var-size was expanded to allow the placement of an allocatable array into static memory. This has a possibly unintended consequence in that automatic deallocation of an allocatable array does not (or can not) occur. program foo

Re: allocatable arrays and -fmax-stack-var-size

2022-03-31 Thread Thomas Koenig via Fortran
Hi Steve, So, it seems that at some point in the past, the option -fmax-stack-var-size was expanded to allow the placement of an allocatable array into static memory. This has a possibly unintended consequence in that automatic deallocation of an allocatable array does not (or can not) occur.

Re: allocatable arrays and -fmax-stack-var-size

2022-03-31 Thread Steve Kargl via Fortran
On Thu, Mar 31, 2022 at 08:36:37PM +0200, Thomas Koenig wrote: > Hi Steve, > > > So, it seems that at some point in the past, the option > > -fmax-stack-var-size was expanded to allow the placement > > of an allocatable array into static memory. This has > > a possibly unintended consequence in t