PR libfortran/95195 - improve runtime error for namelist i/o to unformatted file
authorHarald Anlauf <anlauf@gmx.de>
Tue, 26 May 2020 19:21:19 +0000 (21:21 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 26 May 2020 19:33:46 +0000 (21:33 +0200)
commit8d8a25b0a7c3400c724e04e1d775d9f377216c04
treeca5b63b0656c0b392daf57f8171abf6887bee369
parent73655feb9d44829ce2153f4f5eacc37a6268ce73
PR libfortran/95195 - improve runtime error for namelist i/o to unformatted file

Namelist input/output to unformatted files is prohibited.
Generate useful runtime errors instead instead of misleading ones.

2020-05-26  Harald Anlauf  <anlauf@gmx.de>

libgfortran/
PR fortran/95195
* io/transfer.c (finalize_transfer): Generate runtime error for
namelist input/output to unformatted file.

gcc/testsuite/
PR fortran/95195
* gfortran.dg/namelist_97.f90: New test.
gcc/testsuite/gfortran.dg/namelist_97.f90 [new file with mode: 0644]
libgfortran/io/transfer.c