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: possible bug in g77


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


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