https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105182

--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Wed, Apr 06, 2022 at 08:50:42PM +0000, kermitnuc at gmail dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105182
> 
> --- Comment #2 from Kermit Bunde <kermitnuc at gmail dot com> ---
> (In reply to kargl from comment #1)
> > Thanks for the report, but we're going to need some help.  Code in NJOY21
> > seems to be C++.  I found an errorr.f90 file under NJOY2016. This is an
> > 11000 line code, which pulls in a number of modules.  Can you try to 
> > reduce this to something manageable?
> 
> If one comments out these lines in subroutine resprx:
>          !--Unresolved
>          if (lru.eq.2) then
>             call rpxunr(a,amur,mxlru2,iest,ieed,nwscr)
>          !--Resolved with sammy method
>          else if (nmtres.gt.0) then
>             call rpxsamm(nwscr,a,ier)
>          !--Resolved with errorj method
>          else
>             if (lcomp.eq.0) then
>                call rpxlc0(nwscr,a)
>             else if (lcomp.eq.1.or.lcomp.eq.2) then
>                call rpxlc12(nwscr,a,iest,ieed)
>             endif
>          endif
> 
> Then error.f90 will compile.
> Is there a limit to how many subroutine calls are allowed?
> 

No.  There is an OS imposed limit on stack memory. Perhaps,
you're hitting a stack limit.

Reply via email to