This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bug of g77-3.0
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: "Stefano Simonucci,,," <stefano dot simonucci at tin dot it>
- Cc: bug-gcc at gnu dot org
- Date: Thu, 22 Nov 2001 22:05:48 +0100
- Subject: Re: Bug of g77-3.0
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3BFB6C14.70000@tin.it>
[Get raw message]
"Stefano Simonucci,,," wrote:
> I have a Debian (sid) distribution installed.
> I have successfully compiled (with g77-3.0) the following FORTRAN program:
>
> double complex a,b
> a=(-0.992198783,-0.0275850352)
> write(6,*) ' A',a
> b=log(a)
> write(6,*) ' B',b
> stop
> end
>
> Nevertheless the program print the "a" variable but not the "b"
> variable.
> I think that the log intrinsic function have a bug (maybe an infinite
> loop for particular
> values of the argument). The same function works in other cases.
Yep, I could reproduce this using gcc/g77-3.0.2 installed on GNU/Linux
Debian 2.2 and a recent snapshot of gcc/g77-3.1 on same.
I concur that this most likely is a library issue. I'll file a bug
report in our bug database GNATS (see our home page http://gcc.gnu.org)
w.r.t. libf2c.
Thanks for this complete and concise bug report.
--
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)