This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Runtime bug in g77
I believe that's an automatic array, and the (undocumented) size limit
may be smaller on many systems.
----- Original Message -----
From: "Roman Curik" <curik@antares.jh-inst.cas.cz>
To: <gcc-bugs@gcc.gnu.org>
Sent: Wednesday, April 04, 2001 2:31 AM
Subject: Runtime bug in g77
> To whom it concerns,
>
> I've found a strange behaviour of the F77 code like:
> -------------------------------------------------------
> program t
>
> m=9000000
> call pis(m)
> END
>
>
> subroutine pis(m)
> character*1 u(m)
> u(m)='A'
> write(6,*) u(m)
> return
> end
> ---------------------------------------------------------
>
> This causes segmentation fault in the subroutine. It's something like
> the adjustable array u(m) cannot be allocated or so. for m=8000000
> everything runs ok. Why adjustable arrays are ok just up to 8MB size?
> Thank you for your time
> Roman Curik
>