There are a couple situations (produced in the small attached test source file) when a double complex variable set to zero, and raised to the power of another variable, is not equaling zero - it's coming out as NAN instead. This all works fine in Sun F77 if that's useful for comparison... The case where a double complex variable equaling zero is raised to a real (as opposed to double precision) constant works here but is producing slightly off values in our program when the double complex variable does not equal zero. Release: GNU Fortran 0.5.26 20000731 (Red Hat Linux 7.2 2.96-112.7.2) and also GNU Fortran 0.5.25 19991024 Environment: GNU Fortran 0.5.26 20000731 on RedHat i386/7.3 on athlon GNU Fortran 0.5.25 19991024 on SunOS 5.8 on Sun-Blade-1000 How-To-Repeat: compile and run the attached dprec.f
Fix: ?
Responsible-Changed-From-To: unassigned->toon Responsible-Changed-Why: Fortran Maintainer.
State-Changed-From-To: open->analyzed State-Changed-Why: Also fails on Debian 3.0+ (testing) using 3.2 prerelease on powerpc-unknown-linux-gnu
State-Changed-From-To: analyzed->closed State-Changed-Why: Fixed for GCC/g77-3.3
From: toon@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: fortran/8587 Date: 19 Nov 2002 23:17:37 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: toon@gcc.gnu.org 2002-11-19 15:17:37 Modified files: libf2c : ChangeLog libf2c/libF77 : pow_zz.c gcc/f : ChangeLog news.texi Log message: 2002-11-19 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/8587 * libF77/pow_zz.c: Handle (0.0, 0.0) ** power. 2002-11-19 Toon Moene <toon@moene.indiv.nluug.nl> PR fortran/8587 * news.texi: Show PR fortran/8587 fixed. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libf2c/ChangeLog.diff?cvsroot=gcc&r1=1.184&r2=1.185 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libf2c/libF77/pow_zz.c.diff?cvsroot=gcc&r1=1.4&r2=1.5 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/ChangeLog.diff?cvsroot=gcc&r1=1.501&r2=1.502 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/news.texi.diff?cvsroot=gcc&r1=1.91&r2=1.92