From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11069 invoked by alias); 5 Jul 2006 20:00:54 -0000 Received: (qmail 11004 invoked by uid 48); 5 Jul 2006 20:00:47 -0000 Date: Wed, 05 Jul 2006 20:00:00 -0000 Subject: [Bug fortran/28276] New: EXPONENT() broken for real constants X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anlauf at gmx dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00363.txt.bz2 List-Id: 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