https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78387
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org --- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to Jim Wilson from comment #7) --- snip --- > > However, for stash_internal_unit, we have as global definitions > #define NEWUNIT_STACK_SIZE 16 > static gfc_saved_unit newunit_stack[NEWUNIT_STACK_SIZE]; > and inside the function we have > if (newunit_tos >= NEWUNIT_STACK_SIZE) That size is fairly arbitrary. Short term we can bump this limit up to some higher value. Longer term, I wonder if this needs to be more dynamic. I will get on it.