From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4075 invoked by alias); 3 Feb 2009 04:43:26 -0000 Received: (qmail 4052 invoked by uid 48); 3 Feb 2009 04:43:15 -0000 Date: Tue, 03 Feb 2009 04:43:00 -0000 Message-ID: <20090203044315.4051.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/39072] I/O READing logical value beyond end of string In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jvdelisle at gcc dot gnu dot org" 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: 2009-02/txt/msg00162.txt.bz2 ------- Comment #3 from jvdelisle at gcc dot gnu dot org 2009-02-03 04:43 ------- I believe gfortran is correct as far as giving an error. The last logical value does not begin with a T(t) or F(f). On the commented out case gfortran agrees with g77. The string has one extra space in it so it misses the 1 character wide logical field. Adjusting that one byte, both gfortran and g77 get a valid read. The only thing remaining here to me is are we attempting to read past the end of record with the error case and so should we really be giving an EOR. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39072