This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20716] New: Error gfortran and in "gfortran.fortran-torture/execute/backspace.f90"
- From: "dir at lanl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2005 15:32:21 -0000
- Subject: [Bug fortran/20716] New: Error gfortran and in "gfortran.fortran-torture/execute/backspace.f90"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The fortran testsuite routine
"/gfortran/gcc/gcc/testsuite/gfortran.fortran-torture/execute/backspace.f90" is
actually incorrect - C should actually be 'a' not 'b' - gfortran incorrectly
returns 'b' and passes the bad test.
[dranta:~/tests/gfortran] dir% gfortran -o backspace backspace.f90
[dranta:~/tests/gfortran] dir% backspace
[dranta:~/tests/gfortran] dir% cat backspace.f90
! pr 15755
implicit none
character*1 C
open(10)
write(10,*)'a'
write(10,*)'b'
write(10,*)'c'
rewind(10)
read(10,*)C
backspace(10)
read(10,*) C
if (C.ne.'b') call abort
close(10,STATUS='DELETE')
end
--
Summary: Error gfortran and in "gfortran.fortran-
torture/execute/backspace.f90"
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dir at lanl dot gov
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: powerpc-apple-darwin7.8.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20716