This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on variable_size and function-at-a-time
Geoff Keating wrote:
Sure, like this (in pseudo-F77):
SUBROUTINE SUB(A, N)
ASIZE = N
DIMENSION A(ASIZE)
OK, if it creates a temporary variable that has the right initial value
(N in this case), and that value is used to determine the extent of the
array, that'll work correctly.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)