This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: possible bug in g77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: "L.L. Salcedo" <salcedo at ugr dot es>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Jul 2002 19:39:27 +0200
- Subject: Re: possible bug in g77
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.LNX.4.33.0207011313470.2198-400000@fm196.ugr.es>
"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)