From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3815 invoked by alias); 11 Jan 2007 12:36:28 -0000 Received: (qmail 3768 invoked by uid 48); 11 Jan 2007 12:36:17 -0000 Date: Thu, 11 Jan 2007 12:36:00 -0000 Subject: [Bug fortran/30435] New: Slash at end of input not recognized according to standard X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "drewmccormack at mac dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg00931.txt.bz2 The Fortran standard states that when you have list directed input, and a forward slash (/) appears at the end of a line of input, that any variables in the read statement that have not been initialized should simply be skipped over (ignored). When gfortran encounters a slash at the beginning of a line, it does not exhibit the correct behavior. For example, this data: 6.34 1.34 4345.34534 / with this read statement read(50, *)r1,r2,r3,r4 should set r1 to 6.34, r2 to 1.34, r3 to 4345.34534, and leave r4 unchanged. But gfortran code issues the following run time error: Fortran runtime error: Bad real number in item 4 of list input All other fortran compilers that I use (xlf, ifort, etc) handle this case correctly. -- Summary: Slash at end of input not recognized according to standard Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: drewmccormack at mac dot com GCC build triplet: Configured with: ../gcc-4.3-20061223/configure --enable- language GCC host triplet: gcc version 4.3.0 20061223 (experimental) GCC target triplet: Target: powerpc-apple-darwin8.8.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30435