From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5209 invoked by alias); 15 Dec 2013 22:33:11 -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 5181 invoked by uid 48); 15 Dec 2013 22:33:05 -0000 From: "aruopp at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/59513] Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE Date: Sun, 15 Dec 2013 22:33: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: aruopp at gmx dot de X-Bugzilla-Status: UNCONFIRMED 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: 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: 2013-12/txt/msg01326.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59513 --- Comment #2 from aruopp at gmx dot de --- Hi, compilation of code works without any problems. Only if I execute the code, the problem exists with this error message. The file 'polarfile_1.dat' is written during executing xfoil, but no values are written into the file. I tried to fix it, since error message during run points to mentioned code line in iopol.f, at line 652 (see previous error message with link): DO IA = IA1, IA2 OPEN(LU,FILE=FNPOL,STATUS='OLD',POSITION='APPEND',ERR=90) WRITE(LU,LINEF) & (CPOL(IA,IPOL(KP)), KP=1, NIPOL), & ((CPOLSD(IA,IS,JPOL(KP)), IS=1, 2*NBL), KP=1, NJPOL) CLOSE(LU) ENDDO But this didn't work, too. Why is it working with an older gcc-version? I will try to make a small code example but I'm not a fortran expert.