Runtime bug in g77

Roman Curik curik@antares.jh-inst.cas.cz
Wed Apr 4 07:08:00 GMT 2001


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



More information about the Gcc-bugs mailing list