possible bug in g77
Toon Moene
toon@moene.indiv.nluug.nl
Mon Jul 1 12:33:00 GMT 2002
"L.L. Salcedo" wrote:
> This is to report a possible bug found in g77.
>
> The source file:
>
> dimension a(250000,250000)
> a(1,1)= 0.
> write(*,*) ' a',a(1,1)
> end
>
> The output:
>
> $ /usr/bin/g77 source.f
> $ ./a.out
> a
> $
Fascinating ! This array a(250 000, 250 000) is *way* too large to be
handled on a 32-bit processor (its size is just slightly less than 250
Gbyte :-)
For some reason it manages to dodge all size checks in the compiler,
assembler and linker.
A real bug (I just reproduced it with gcc/g77-3.1) ! I'll look into it.
Thanks,
--
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
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
More information about the Gcc-bugs
mailing list