From: Claus Denk <denk@cica.es>
Subject: Re: running g77-0.5.21
Date: Fri, 12 Sep 1997 22:45:09 +0200 [thread overview]
Message-ID: <50335bbcd03530028735a9e8a7381f55.axp-list@archive.invalid> (raw)
Roman Martonak wrote:
>
> I have successfully compiled and installed g77-0.5.21 on my friend's UDB with
> 40 MB RAM and 96 MB swap, it took 3 3/4 hours and went smoothly. However, when
> I compile the following simple program and try to run it (no optimization),
>
> program test
>
> real*8 a
> integer*4 i
>
> do i = 1,4000000,1
>
> a = a + dlog(dfloat(i))
>
> enddo
>
> write(*,*)'a = ',a
>
> stop
> end
>
> the program crashes with the message Floating Exception. Any idea what might
> be wrong ?
>
You have to initialize a. The f77 standard does not specify
what value should be given to an uninitialized variable.
regards, Claus
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-09-12 20:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-12 20:45 Claus Denk [this message]
[not found] <199709111507.LAA22469@melange.gnu.ai.mit.edu>
1997-09-12 15:19 ` running g77-0.5.21 Roman Martonak
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox