This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/22412] New: Fortran B edit descriptor error
- From: "dje at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2005 18:06:49 -0000
- Subject: [Bug libfortran/22412] New: Fortran B edit descriptor error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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