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.
Sounds like a bug to me, and if your test program worked
in a previous release, it's a regression.
Probably best to open a PR.
Best regards
Thomas
