From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22518 invoked by alias); 15 Jul 2014 22:07:23 -0000 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 Received: (qmail 22141 invoked by uid 48); 15 Jul 2014 22:07:13 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/59513] [4.8/4.9/4.10 Regression] Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE Date: Tue, 15 Jul 2014 22:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg01029.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59513 --- Comment #23 from Dominique d'Humieres --- > Jerry, concerning your cited standard: > "If the file contains an endfile record" suggests that there is some > special marker in the file to be read/written. >>From the standard: > NOTE 9.2 > An endfile record does not necessarily have any physical embodiment. The > processor may use a record count or other means to register the position > of the file at the time an ENDFILE statement is executed, so that it can take > appropriate action when that position is reached again during a read > operation. The endfile record, however it is implemented, is considered > to exist for the BACKSPACE statement (9.8.2).