This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fortran 90


Prof. M.B. Patil wrote:

g77 provides an array bounds check compiler option (-f-bounds-check). However, this does not work with the f77 code obtained by translating an f90 program with VAST90. (It catches every allocatable array!)

I've never used VAST90 myself, so I have to be guessing here, but it could well be that in the translation of Fortran 90 -> Fortran 77 VAST90 relies on tricks that violate array bounds.


As there is no equivalent of allocatable arrays in Fortran 77, it probably uses a common block to "allocate" them and use a bogus size in most instances (and having a really big common block in one place in the program).

As I said, just guessing.

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-g95.sourceforge.net/ (under construction)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]