From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28732 invoked by alias); 11 Jul 2005 18:06:57 -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 28703 invoked by uid 48); 11 Jul 2005 18:06:49 -0000 Date: Mon, 11 Jul 2005 18:08:00 -0000 From: "dje at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050711180647.22412.dje@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libfortran/22412] New: Fortran B edit descriptor error X-Bugzilla-Reason: CC X-SW-Source: 2005-07/txt/msg01289.txt.bz2 List-Id: The negative-z-descriptor.f90 test for PR 22217 fails on the statement using '(B65)' format with Fortran runtime error: Error 0. The error occurs in list_read.c:next_char() when salloc_r returns NULL. Leading up to this point, transfer.c:formatted_transfer() was invoked with format B. As with the previous format statements, the function calls unget_format(f), which places the format into the saved_format buffer. Upon return from the I/O, finalize_transfer() is called leading to namelist_read(). The calls to next_char() step through a buffer of spaces reaching the end, NULL, causing the error. The format string in the saved_format buffer is never seen. -- Summary: Fortran B edit descriptor error Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dje at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-aix powerpc-darwin GCC host triplet: powerpc-aix powerpc-darwin GCC target triplet: powerpc-aix powerpc-darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22412