Recursive subroutine stack overflow?

Thank you @FortranFan! I’m experimenting with -fmax-stack-var-size=XYZ as suggested by @shahmoradi in -frecursive .vs. fmax-stack-var-size .vs. -unlimit -s , but now I’m getting an internal compiler error elsewhere with the associate construct:

   48 |       associate(watch=>settings%timers%diffusion,s=>settings)
      |                                                             1
internal compiler error: Segmentation fault
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using -freport-bug).

It must have to do with the fact that associate creates stack variables?