From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5FE113853567; Sat, 11 Jun 2022 07:20:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FE113853567 From: "yelinhui at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/105924] New: false floating point exception when evaluating exponential function Date: Sat, 11 Jun 2022 07:20:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: yelinhui at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2022 07:20:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105924 Bug ID: 105924 Summary: false floating point exception when evaluating exponential function Product: gcc Version: 7.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: yelinhui at hotmail dot com Target Milestone: --- $ gfortran --version GNU Fortran (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. $ cat test.f program test implicit none real*8 :: e e=3D-4.d2=20=20=20=20=20=20 print *, e, exp(-e*e) end program test $ gfortran -O0 -g -fbacktrace -ffpe-trap=3Dzero,overflow,underflow,invalid,denormal test.f $./a.out Program received signal SIGFPE: Floating-point exception - erroneous arithm= etic operation. Backtrace for this error: #0 0x1554d03f82ed in ??? #1 0x1554d03f7503 in ??? #2 0x1554cfc8cf0f in ??? #3 0x1554d00c5ea4 in ??? #4 0x1554d004e1fe in ??? #5 0x55b38e68a9d5 in test at /tmp/test.f:7 #6 0x55b38e68aa54 in main at /tmp/test.f:9 Floating point exception (core dumped)=