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
This was just fixed by " François-Xavier Coudert": * gfortran.fortran-torture/execute/backspace.f90: Check after backspace and read was incorrect.