Hi I hava a problem with g77 and arrays

Toon Moene toon@moene.indiv.nluug.nl
Fri Feb 20 21:22:00 GMT 2004


Lars Segerlund wrote:

>  All I want to do is allocate some memory the quick and dirty way :-( 

I'm sorry I can't help you (I also don't understand why your approach 
doesn't work).

Do you really have to allocate (in the Fortran 90 sense) this array ? 
Is it used outside the routine it's allocated in ?

If not, you could use a automatic array (if you know the bounds at entry 
of the subroutine).  Automatic arrays are supported by g77.

Hope this helps,

-- 
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)



More information about the Gcc-help mailing list