This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28276] New: EXPONENT() broken for real constants
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2006 20:00:47 -0000
- Subject: [Bug fortran/28276] New: EXPONENT() broken for real constants
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi *,
there is a nasty bug with EXPONENT():
EXPONENT(1.0) evaluates to 0 (which is wrong), while
real :: a=1.0; EXPONENT(a) evaluates to 1 (which is correct).
For more details and a further example see the attached
code sample.
Cheers,
-ha
--
Summary: EXPONENT() broken for real constants
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28276