From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5184 invoked by alias); 13 Aug 2004 02:17:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 5177 invoked by uid 48); 13 Aug 2004 02:17:06 -0000 Date: Fri, 13 Aug 2004 02:17:00 -0000 Message-ID: <20040813021706.5176.qmail@sourceware.org> From: "bdavis at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040728175903.16805.aovb94@dsl.pipex.com> References: <20040728175903.16805.aovb94@dsl.pipex.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libfortran/16805] Runtime failure using list directed read from string X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01212.txt.bz2 List-Id: ------- Additional Comments From bdavis at gcc dot gnu dot org 2004-08-13 02:17 ------- There is really two problems here (so far): First is problems reading into a substring, which causes the device error reported above. Second is reading list directed from an internal file: [bdavis@localhost pr16805]$ cat a.f PROGRAM rdch REAL fp CHARACTER*10 ch ch = ' 1' ! READ (ch(5:5),*) fp READ (ch,*) fp STOP END [bdavis@localhost pr16805]$ gfc a.f [bdavis@localhost pr16805]$ ./a.out At line 6 of file a.f Fortran runtime error: Success Two different bugs in one PR. What a day !! --bud davis -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16805