g77 and array limits

Toon Moene toon@moene.indiv.nluug.nl
Sat Apr 19 18:26:00 GMT 2003


David Ronis wrote:

> Hi Jurgen
> 
> Here's a simple test program (that fails)
> 
>       complex*16 foo(10000,10000)
>       integer i,j
>       save foo
> 
>       do i=1,10000
>          do j=1,10000
>             foo(i,j)=i+j
>          end do
>       end do
>       write(*,*)foo(1,1),foo(10000,10000)
>       stop
>       end
> 
> 
> with g77 3.2.2
> 
> I get:
> 
> g77 -static -O0 -Wall test.f
> test.f: In program `MAIN__':
> test.f:1: 
>          complex*16 foo(10000,10000)

I'm sorry, but I don't get this with 3.2.2 (actually, 3.2.2 prerelease 
20021207).

Please check with -v what the exact version of the compiler is that you 
are using.

Thanks in advance,

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



More information about the Gcc mailing list