From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14797 invoked by alias); 11 Feb 2005 17:10:36 -0000 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 Received: (qmail 14746 invoked by uid 48); 11 Feb 2005 17:10:26 -0000 Date: Fri, 11 Feb 2005 21:34:00 -0000 Message-ID: <20050211171026.14745.qmail@sourceware.org> From: "sgk at troutmask dot apl dot washington dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050211130530.19904.schnetter@aei.mpg.de> References: <20050211130530.19904.schnetter@aei.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/19904] Division by zero leads to error X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg01071.txt.bz2 List-Id: ------- Additional Comments From sgk at troutmask dot apl dot washington dot edu 2005-02-11 17:10 ------- Gfortran is a Fortran 95 compiler, and AFAIK gfortran's behavior conforms to the Fortran 95 standard, because it has no allowance for floating point exception. Someday, gfortran may/will support Technical Report ISO/IEC 15580: 1998(E), which will then permit the use of the ieee_arithmetic, ieee_features, and ieee_exceptions intrinsic modules. If you want to set a NaN in gfortran you can do, program test real nan integer duh equivalence (nan,duh) duh = z'FFC00000' print*, nan end program test The question then becomes "what are going to do with NaN?" I suspect the gfortran's behavior of the numeric rational operation and numeric binary operation may give undefined behavior, which is again permitted by the Fortran 95 standard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19904