re PR libfortran/80727 (Crash of runtime gfortran library during integer transformation)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 15 May 2017 23:48:39 +0000 (23:48 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Mon, 15 May 2017 23:48:39 +0000 (23:48 +0000)
commita5768d38a66fc4136208bc8442a4118df2bd588f
treeaae6a5d219e2a2328d5b0eca6f9178cbe3e6fd86
parentb2954e124bc411b0b9d8f5f7b4fe2e50f241bbd0
re PR libfortran/80727 (Crash of runtime gfortran library during integer transformation)

2017-05-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/80727
* transfer.c (read_sf_internal): Remove bogus code to detect EOR.
(read_block_form): For internal units, generate EOR if no more
bytes left in unit and we are trying to read with ADVANCE='NO'.

* gfortran.dg/read_3.f90: New test.

From-SVN: r248080
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/read_3.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/transfer.c