bug in g77 for at least IA64 and AMD64
Jakub Jelinek
jakub@redhat.com
Thu Oct 30 17:09:00 GMT 2003
On Thu, Oct 30, 2003 at 01:32:42PM +0100, Winfrid Tschiedel wrote:
> Hi,
>
> This small fortran program causes a segmentation fault :
> program test
> parameter ( n3=257)
> common /abc/ a ,b
> real*8 a(1024,1024,n3),b(1024,1024,255)
> b(1,100,3)=1.0d0
> a(1,100,3)=1.0d0
> a(1024,1024,n3)=2.d0
> b(1024,1024,255)=3.0
> print *,a(1,100,3),b(1,100,3)
> print *,a(1024,1024,n3),b(1024,1024,255)
> end
>
> [winfrid@rxiX00-rhel ~]$ g77 big-mem.f
> [winfrid@rxiX00-rhel ~]$ ./a.out
> Segmentation fault (core dumped)
See http://gcc.gnu.org/ml/gcc-patches/2003-10/msg02054.html
I'll look into Toon's reply ASAP, sorry that I haven't got to it
earlier.
Jakub
More information about the Gcc
mailing list