From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8477 invoked by alias); 6 Mar 2007 21:51:36 -0000 Received: (qmail 8395 invoked by uid 48); 6 Mar 2007 21:51:23 -0000 Date: Tue, 06 Mar 2007 21:51:00 -0000 Message-ID: <20070306215123.8394.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/31052] Bad IOSTAT values when readings NAMELISTs past EOF In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anlauf at gmx dot de" 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-03/txt/msg00422.txt.bz2 ------- Comment #7 from anlauf at gmx dot de 2007-03-06 21:51 ------- Created an attachment (id=13153) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13153&action=view) Revised demo Revised demo. New namelist for this demo follows. At some place, the input read gets garbled with gfortran, see the comment before the print statement in "position_nml". Removing a few lines in the main program will hide this bug. Somehow the cycle REWIND/READ/BACKSPACE/(READ) confuses the runtime. -- anlauf at gmx dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #13148|0 |1 is obsolete| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31052